added astar implementation now it needs to be used