pathfinding rocks problem