static void Main(string[] args) { var menu = new Menu_Files.Menu(); menu.Start(); while (menu.start == true) { var blackJack = new BlackJackGame(); menu.Setup(110, 36); menu.CreateBoarder(37, 35); menu.CreateTableBoarder(); //menu.TestShowCard(0); //menu.TestShowCard(1); //menu.TestShowCard(2); menu.Write(0, 1, "Enter your name: "); blackJack.player.name = Console.ReadLine(); blackJack.StartNewGame(); Console.SetCursorPosition(0, 30); Console.WriteLine("Press Enter to restart. "); Console.WriteLine("Press ESC to enter menu."); Console.WriteLine("Press any button to Exit."); var input = Console.ReadKey(); if (input.Key == ConsoleKey.Enter) { Console.Clear(); menu.Write(47, 10, "RESTARTING...."); System.Threading.Thread.Sleep(2500); } else if (input.Key == ConsoleKey.Escape) { Console.Clear(); menu.Start(); } else { break; } } Console.Clear(); menu.Write(44, 10, "Thanks for playing BlackJack!"); System.Threading.Thread.Sleep(2500); }