private void PlayGame() { if (_animals == null) { ConsoleWrite("No animal data available. Please select the option to populate data from file.", true); return; } var names = string.Join(", ", _animalService.GetAnimalNames()); ConsoleWrite($"Pick an animal from the following list: {names}.{Environment.NewLine}I will guess it by asking you some questions."); var tree = _animalService.GetAnimalTree(); if (tree == null) { ConsoleWrite("Error in building animal tree questions.", true); return; } TraverseTree(tree); }