changes to astar and added code to graph stuff