Pendientes condition added at BFS.java