new maze generation code (build)