pathfinding is done