This program uses the "recursive backtracking algorithm" for generating a maze. A description of this algorithm can be found here: http://weblog.jamisbuck.org/2010/12/27/maze-generation-recursive-backtracking dont shift click it you will d i e