public void AddCharacterToTournament(ICharacter c) { while (true) { if (Participants.Exists(i => i.Character.Name == c.Name)) { c.SetName(BotHelper.GenerateRandomBotName()); continue; } Participants.Add(new Participant { Battles = 0, Character = c, Status = ParticipantStatus.Active }); break; } }