refactored RoomCell constructor to remove DRY code