removed pathfinding algorithm as it was blowing up the code.