started question 2 on BFS