The maze uses the stack to implement the maze problem. The algorithm used is a non-recursive algorithm