astar still not working. Also the tests should be changed because of changes made elsewhere