Helper function - joining rooms