There are 3 rooms, the Hall of Nightmares, the Hall of Good Dreams, and the Room of Endless Daydreams. If you go into one, you can leave and go to another. If you do not go into one of the rooms, you will wake up.
Thanks to 2027emin