Update pathfinding AI.