static void Main(string[] args) { MA = new Manager(); BC = new BattleConnection(); Thread ctThread = new Thread(() => BC.StartBattleConnection(ref MA)); ctThread.Start(); LT = new Listener(ref MA); LT.InitListener(); ctThread.Join(); }