Fix infinite loop in Player::joinRoom