Pathfinding terminer