added feature to close a room that's been opened