A* search problem