pathfinding improvements