static void Main(string[] args)
        {
            Config config = Config.loadConfig();
            IFighter fighter;
            if (config.botMethod == null || config.botMethod == "Fighter")
            {
                fighter = new Fighter(config);
                Calculator calculator = new Calculator(config);
                calculator.init(fighter);
                fighter.setCalculator(calculator);
            }
            else
            {
                fighter = new FighterwithoutCalculator(config);
            }

            Thread controlThread = new Thread(delegate() { control(fighter); });

            controlThread.Start();

            fighter.start();

            Debug.WriteLine("Bot stopped!");
        }
 public void setCalculator(Calculator calculator)
 {
     this.calculator = calculator;
 }