Changed search engine to perform BFS as opposed to DFS.