added printShortestPath function to bfs