implemented more of astar