better guessing: BFS instead of DFS