Uncommented level generation code.