public void RemoveUser(IPlayer player) { // if player enters the room, its room id has to be set to this id. if (player != null) { if (_roomDAL.RemoveUser(player.Id, this.Id)) { Players.Remove(player); } } }