level ended, pathfinding optimization