Pathfinding does not run all the time
new Pathfinding and map