Create a separate class to represent the solver of the maze. Additional search algorithms will be implemented here.