static void Main(string[] args) { GameState gameState = new GameState(); gameState.Run(); while (true) { ConsoleKeyInfo consoleKeyInfo = Console.ReadKey(); switch (consoleKeyInfo.Key) { case ConsoleKey.F2: gameState.Save(); break; case ConsoleKey.F3: gameState.Reset(); gameState = gameState.Load(); gameState.Run(); break; default: gameState.PressedKey(consoleKeyInfo); break; } } }