private void InitBot(bool reset)
 {
     if (reset || bot == null)
     {
         bot = new Bot(int.Parse(TextBoxVillages.Text), int.Parse(TextBoxDelay.Text));
     }
     if (bot == null)
     {
         bot.AddScout((bool)AScout.IsChecked, int.Parse(TextBoxDelay.Text));
         bot.AddTrader((bool)ATrade.IsChecked, int.Parse(TextBoxDelay.Text));
         bot.AddAttack((bool)AAttack.IsChecked, int.Parse(TextBoxDelay.Text));
     }
     else
     {
         bot.AddScout((bool)AScout.IsChecked, 0);
         bot.AddTrader((bool)ATrade.IsChecked, 0);
         bot.AddAttack((bool)AAttack.IsChecked, 0);
     }
 }