Added (untested) code to produce a maze grid