private void ProceedCommand(string command) { switch (command) { case "Enter": Console.Clear(); this.renderer.RenderPlayfield(this.playfield); this.PlayTurn(); break; case "Save": var memory = new Caretaker(); memory.Memento = this.playfield.SaveMemento(); var fileSerializer = new FileSerializer(); fileSerializer.SerializeObject(memory.Memento, GameLocation); break; case "Exit": Environment.Exit(0); break; default: Console.Clear(); Console.WriteLine(ChooseCommand); this.ProceedCommand(Console.ReadLine()); break; } }