public static void Main(string[] args)
 {
     while (true)
     {
         LotteryDay.receivedMoney = LotteryDay.ReceivedMoney();
         UserInterface.Startmenu();
         while (UserInterface.successfulSignIn)
         {
             //Console.WriteLine(User.NextId);
             LotteryDay.LotteryNumber();
             UserInterface.MainMenu();
         }
     }
 }
        public static void LotteryNumber()
        {
            LotteryDay receivedMoney = new LotteryDay();

            double getMoneyValue = LotteryDay.ReceivedMoney();

            if (getMoneyValue >= 10)
            {
                // guess the 5 numbers
                int[]  zombieLottolineNumber = new int[5];
                Random randomNumbers         = new Random();


                List <int> listNumbers = new List <int>();
                int        num;
                for (int round = 0; round < 5; round++)
                {
                    do
                    {
                        num = randomNumbers.Next(1, 25);
                    } while (listNumbers.Contains(num));
                    listNumbers.Add(num);

                    zombieLottolineNumber[round] = num;
                }
                //Console.WriteLine("ZombieLotto line number: " + "{0}", string.Join(", ", zombieLottolineNumber));
                zombieLottoLineNumber = zombieLottolineNumber;

                ReceivedMoney moneyObject = new ReceivedMoney();
                moneyObject.receivedMoney = 0.0;

                string jsonString = JsonConvert.SerializeObject(moneyObject, Formatting.Indented);
                JsonHandling.JsonWrite("../../../ReceivedMoney.json", jsonString);

                AddToJson();
                UserHistory.CheckNumbers();
            }
        }