Commented maze generation code