pathfinding can go in infinite loop sometime
pathfinding can go in infinite loop sometime