cracked prey and predator chase and avoidance algorithms. Implemented avoidance algorithm