Avoid pathfinding when mouse outside of the world + adding collision with map