public int countPlayerPoints(int player)
    {
        int points = 0;
        for (int[] row : board)
        {
            for (int value : row)
            {
                if(value == W && player == W)
                {
                    points++;
                }
                else if(value == B && player == B)
                {
                    points++;
                }
            }
        }
        return points;
    }