public Case[][] TransformToTab(String stringTab, int tabX, int tabY){
        ArrayList<String[]> completeList = new ArrayList<>();
        String[] tab1 = stringTab.split(";");
        for (int i = 0; i < tab1.length; i++) {
            String[] tab2 = tab1[i].split(",");
            completeList.add(tab2);
        }
        
        Case[][] newtab = new Case[tabX][tabY];
        for (int j = 0; j < tabY; j++) {
            for (int i = 0; i < tabX; i++) {
                newtab[i][j] = new Case(Etat.vide);
            }
        }
        
        for (Iterator<String[]> it = completeList.iterator(); it.hasNext();) {
            String[] line = it.next();
            Etat temp = Etat.vide;
            switch(Integer.valueOf(line[2])) {
                case 0:
                    temp = Etat.vide;
                    break;
                case 1:
                    temp = Etat.jeunePousse;
                    break;
                case 2:
                    temp = Etat.arbuste;
                    break;
                case 3:
                    temp = Etat.arbre;
                    break;
                case 4:
                    temp = Etat.feu;
                    break;
                case 5:
                    temp = Etat.cendre;
                    break;
                case 6:
                    temp = Etat.infecte;
                    break;
            }
            int x = Integer.valueOf(line[0]);
            int y = Integer.valueOf(line[1]);
            newtab[x][y].setEtat(temp);
        }
        return newtab;
    }