public boolean testTwoPair(Die[] combination) {
        int i = 0;
        int colorBis = 0;
        int valueBis = 0;
        Die[] pairNumber1 = new Die[2]; 
        Die[] pairNumber2 = new Die[2];
        
        for(int j = 0; j < 2; j++) {
            pairNumber1[j] = null;
            pairNumber2[j] = null;
        }
        
        color = combination[i].getColor();
        value = combination[i].getValue();
        
        pairNumber1[0] = combination[i];
        
        do {
            i++;
            if(color == combination[i].getColor() && value == combination[i].getValue())
                pairNumber1[1] = combination[i];
            else if(pairNumber2[0] == null) {
                valueBis = combination[i].getValue();
                colorBis = combination[i].getColor();
                pairNumber2[0] = combination[i];
            }
            else if(colorBis == combination[i].getColor() && valueBis == combination[i].getValue())
                pairNumber2[1] = combination[i];
            else
                i = 3;
        }while(i < 3);
        
        return pairNumber1[1] != null && pairNumber2[1] != null;
    }