private void BoardDisplay_Load(object sender, EventArgs e) { gamemode.TurnChanged += OnTurnStarted; gamemode.GameStateChanged += OnGameStateUpdated; chessboard = gamemode.GenerateBoard(); InstantiateUIBoard(); UpdateBoard(); // Starts game. backgroundWorkerMove.RunWorkerAsync(); }