updated pathfinding