Finished logic for handling rooms