Added Constructor to MazeSolver class