Implementation of the Depth-First Search Algorithm for Maze Generation and Solving