public void DisplayMenu()
        {
            try
            {
                MethodLibrary ml = new MethodLibrary();

                int det;

                Console.ForegroundColor = ConsoleColor.Cyan;
                Console.Clear();
                Console.WriteLine("Welcome to the African countries game Main page");
                Console.WriteLine("========================================================\n");
                Console.WriteLine("Enter the associated number to choose an option\n");
                Console.WriteLine("1. Play African countries game");
                Console.WriteLine("2. Randomized Fact page");
                Console.WriteLine("3. Learn the countries");

                ml.PrintColor(ConsoleColor.DarkCyan, "4. Play Countries of the world");
                ml.PrintColor(ConsoleColor.DarkCyan, "5. Check Highest score");

                Console.ForegroundColor = ConsoleColor.Cyan;
                Console.WriteLine("6. About us");
                Console.WriteLine("7. Quit");

                det = Convert.ToInt32(Console.ReadLine());

                if (det > 7 || det == 0)
                {
                    ml.IfState(7);
                    DisplayMenu();
                }

                switch (det)
                {
                case 1:
                    AfConGame();
                    break;

                case 2:
                    RanFctPg();
                    break;

                case 3:
                    PracticeCountries();
                    break;

                case 4:
                    ml.proVersionMessage();
                    DisplayMenu();
                    break;

                case 5:
                    ml.proVersionMessage();
                    DisplayMenu();
                    break;

                case 6:
                    AboutUs();
                    break;

                case 7:
                    ml.Exit();
                    break;
                }
            }
            catch (FormatException)
            {
                MethodLibrary ml = new MethodLibrary();
                ml.CatchFormat();
                DisplayMenu();
            }
            catch
            {
                MethodLibrary ml = new MethodLibrary();
                ml.CatchAll();
                DisplayMenu();
            }
        }  // Displays the main menu