This is a simple pygame script to simulate flocking behaviour
Read more here
https://en.wikipedia.org/wiki/Boids
The script works suboptimally as the weights need to be tweaked to produce a more flock-like behaviour (as opposed to the swarm-like behavior is has now) Thanks to Christian Bertram for fixing my obvious mistake and making the weight slider function spectacularly!