Changing room status to state machines