Updated maze generator with a new version