Astar is now working. Only runs one time at the moment.