@Override
    public boolean conditionArret() {
        boolean isEqualToZero = false;
        int somme;
        for (int j = 0; j < transitionResultante.length; j++) {
            somme = 0;
            for (int k = 0; k < transitionResultante[0].length; k++) {
                somme += transitionResultante[j][k];
            }
            if (somme == 0) {
                isEqualToZero = true;
                break;
            }
        }

        return i > 1000000 || (i > 10000 && !isEqualToZero);
//        return i > 10;
    }