private static void AddDefeatOption(Options chosenOption, int numberOption) { Screen.ClearScreen(); Console.WriteLine(Screen.AddNewDefeatedOption()); var filteredSetupOptions = setup.GameOptions.FilterOptions(chosenOption.key); Console.WriteLine(Screen.AvailableEditOptions(filteredSetupOptions)); var newDefeat = Console.ReadKey(); Screen.ClearScreen(); setup.SetupNewDefeatOption(chosenOption.key, Util.KeyCharToInt(newDefeat.KeyChar), true); Screen.ClearScreenAfterSeconds(1000); Console.WriteLine(Screen.WaitUntilTheGameUpdate()); Screen.ClearScreenAfterSeconds(3000); Console.WriteLine(Screen.GameUpdated()); chosenOption = setup.SetupRetrieveOptionNameByKey(numberOption); foreach (var defeated in chosenOption.defeats) { Console.WriteLine(Screen.DefeatsOption(defeated.Value)); } Screen.ClearScreenAfterSeconds(3000); MainMenu(); }