I don't really have a good enough grasp of classes to implement them. Could I make a RoomManager class?
Also you should look up how 'class'es work. Using them would make this easier.