private void CheckIfAllGameEnded() { if (!(from gvm in Games where !gvm.IsGameEnded select gvm).Any()) { foreach (GameViewModel gvm in Games) { gvm.AI.Genome.Fitness = gvm.Score; } _dr.Evolve(); RaisePropertyChanged("Generation"); if (IsTrainingStarted) { ExecStartTraining(); } } }