combination of bfs and astar finished, final debug