debugging and stuff Astar