A* and mazes