private void FightBtn_Click(object sender, EventArgs e) { FightBtn.Enabled = false; for (var i = 0; i < 10000; i++) { var attackersCopy = Attackers.Clone(); var defendersCopy = Defenders.Clone(); if (i % 2 == 0) { attackersCopy.FightWith(defendersCopy); } else { defendersCopy.FightWith(attackersCopy); } for (var j = 0; j < Attackers.Members.Count; j++) { Attackers.Members[j].Logs.UpdateLogs(attackersCopy.Members[j]); } for (var j = 0; j < Defenders.Members.Count; j++) { Defenders.Members[j].Logs.UpdateLogs(defendersCopy.Members[j]); } } SaveLogs(); FightBtn.Enabled = true; }