public void RunGame() { while (true) { Console.WriteLine("Choose an option:"); Console.WriteLine("P: Play game"); Console.WriteLine("S: Seed words. This will override all previously added words"); Console.WriteLine("A: Append word"); Console.WriteLine("H: High scores"); Console.WriteLine("Esc: Quit game"); var c = Console.ReadKey(true); switch (c.Key) { case ConsoleKey.P: Console.Clear(); StartGame(); break; case ConsoleKey.S: Console.Clear(); GameInitializer.Seed(repo); Console.WriteLine("Seeding Done"); break; case ConsoleKey.A: Console.Clear(); Console.WriteLine("Input the word followed by enter:"); repo.AddWord(Console.ReadLine().ToLower()); break; case ConsoleKey.H: Console.Clear(); repo.GetHighscores(5); break; case ConsoleKey.Escape: return; default: break; } } }