So i have this code:
Code:
static void Main(string[] args)
        {
            Console.Title = "Dungeon Defenders Mana Hack";
            SetUp();
        }

         static void SetUp()
        {
            Process[] processes;
            processes = Process.GetProcessesByName("DunDefGame");
            if (processes.Length > 0)
            {
                Write(processes);
              
            }
            else
            {
                Console.WriteLine("Could Not Find Game Process, Please Launch Dungeon Defenders.");
                Console.WriteLine("Press any key to retry");
                Console.WriteLine("\n");
                Console.Read();
                System.Threading.Thread.Sleep(1000);
                SetUp();
            }
        }
Initially the code runs once as expected.
BUT when i hit a key to run SetUp() again it runs it twice instead of once. (At this point it has ran 3 times, once initially and twice the second time)