Generates 2-D grids mazes in different ways.