public void CheckForWin(int position)
    {
        int [][] currentWinningOptions = winOpts.GetByPosition(position);
        bool     winFound = false;

        sectionsFilled++;

        for (int i = 0; i < currentWinningOptions.Length; i++)
        {
            int winTicked = 0;
            for (int j = 0; j < currentWinningOptions[i].Length; j++)
            {
                if (sections[currentWinningOptions[i][j]].gameOverText.text == GetPlayerSide())
                {
                    winTicked++;
                }
            }
            if (winTicked == 2)
            {
                winFound = true;
            }
        }

        if (winFound)
        {
            GameOver("Game Over!\n" + GetPlayerSide() + " wins!");
        }
        if (sectionsFilled == 9)
        {
            GameOver("Game Over!\n It's a draw!");
        }
    }
    public bool CheckForWin(int blockIndex)
    {
        int [][] currentWinningOptions = winOpts.GetByPosition(blockIndex);
        bool     winFound = false;

        for (int i = 0; i < currentWinningOptions.Length; i++)
        {
            int winTicked = 0;
            for (int j = 0; j < currentWinningOptions[i].Length; j++)
            {
                if (buttonList[currentWinningOptions[i][j]].text == globalController.GetPlayerSide())
                {
                    winTicked++;
                }
            }
            if (winTicked == 2)
            {
                winFound = true;
            }
        }
        return(winFound);
    }