Update BFS.java