pathfinding second step