Working general astar