C++ Recursive Maze Solver