So I just have to go in random directions until something happens?
Great.
Well, kind of. The rooms don't change. If you follow the same path each time and just change which door you go through in the furthest room you make it before being sent back to the beginning, you'll eventually make it through. It's not that many rooms and it's not that many doors, so it won't take ages.