Update `path` method and BFS Visualization