started outlining pathfinding code