Commented the pathfinding routine