public static void ExecuteOption(string myOption, Deck myDeck) { switch (myOption) { case "a": { //sort by ascending Console.WriteLine("\nYou chose to sort by ascending:"); myDeck.SortAscending(); break; } case "b": //shuffle randomly Console.WriteLine("\nYou chose to shuffle randomly:"); myDeck.Shuffle(); break; case "q": //shuffle randomly Console.WriteLine("\nYou chose to exit the program. Goodbye."); Environment.Exit(0); break; default: Console.WriteLine("\n" + myOption + " is not a valid selection."); break; } }