working version of flocking, needs tweaks