private HashMap VecinityStateCount(ArrayList l){
        int temp;
        HashMap countList = new HashMap();
        countList.put(Etat.vide, 0);
        countList.put(Etat.jeunePousse, 0);
        countList.put(Etat.arbuste, 0);
        countList.put(Etat.arbre, 0);
        countList.put(Etat.feu, 0);
        countList.put(Etat.cendre, 0);
        countList.put(Etat.infecte, 0);
        
        
        //System.out.println("Debut du comptage d etat dans le voisinage !");
        for (Iterator it = l.iterator(); it.hasNext();) {//   pr chaque case du voisinage, on cherche son etat
            Case c = (Case) it.next();
            switch(c.getEtat()){
                case vide:
                    temp = Integer.valueOf(countList.get(Etat.vide).toString());
                    temp++;
                    countList.put(Etat.vide, temp);
                break;
                case jeunePousse:
                    temp = Integer.valueOf(countList.get(Etat.jeunePousse).toString());
                    temp++;
                    countList.put(Etat.jeunePousse, temp);
                break;
                case arbuste:
                    temp = Integer.valueOf(countList.get(Etat.arbuste).toString());
                    temp++;
                    countList.put(Etat.arbuste, temp);
                break;
                case arbre:
                    temp = Integer.valueOf(countList.get(Etat.arbre).toString());
                    temp++;
                    countList.put(Etat.arbre, temp);
                break;
                case feu:
                    temp = Integer.valueOf(countList.get(Etat.feu).toString());
                    temp++;
                    countList.put(Etat.feu, temp);
                break;
                case cendre:
                    temp = Integer.valueOf(countList.get(Etat.cendre).toString());
                    temp++;
                    countList.put(Etat.cendre, temp);
                break;
                case infecte:
                    temp = Integer.valueOf(countList.get(Etat.infecte).toString());
                    temp++;
                    countList.put(Etat.infecte, temp);
                break;
            }
        }
        //System.out.println("Fin du comptage d etat du voisinage !");
        return countList;
    }