public void InitGame() { m_BlackPlayer = new Player(Color.Black); m_WhitePlayer = new Player(Color.White); m_CurrentPlayer = m_BlackPlayer; m_BlackPlayerScore = m_WhitePlayerScore = 0; GameSettingsForm startForm = new GameSettingsForm(); startForm.ShowDialog(); if (startForm.DialogResult == DialogResult.OK) { if (startForm.IsAgainstComputer) { m_WhitePlayer.IsComputer = true; } m_CurrentGame = new Game(startForm.BoardSize); m_GameUI = new CurrentGameForm(startForm.BoardSize, this); m_CurrentGame.InitNewGame(); startGame(); } }