static void Main(string[] args) { int N = int.Parse(Console.ReadLine()); Game game = new Game(); List<string> wordlist = new List<string>(); for (int i = 0; i < N; i++) { string W = Console.ReadLine(); wordlist.Add(W); } string LETTERS = Console.ReadLine(); game.AddSeed(LETTERS); foreach (string s in wordlist) game.AddDictWord(s); // Write an action using Console.WriteLine() // To debug: Console.Error.WriteLine("Debug messages..."); Console.WriteLine(game.BestWord); }