experimenting with bfs