now prints both start and goal state