first round of bfs done