toying with A* search problem