Updated random generation code

Added constant 'ENABLE_3D_GEN', which enables 3D room generation if it
is set to 1, and disables it if set to 0