Maze Solver class