Solve SearchMaze.