Implemented flocking