Created a Room loop that works with switching between rooms.