Implemented room allocation