A* algortihm for pathfinding with some maps