maze generation works