Pathfinding only every ten iterations.