finish the people BFS