BFS & Solver