Started refactoring wander and flocking functionality.