private MBox createBox(int posX, int posY, char c) throws MazeException {
		MBox retour = new EBox(posX, posY);
		if (c == 'W')
			retour = new WBox(posX, posY);
		else if (c == 'E') { //variable deja initialise
		} else if (c == 'A') {
			if (grid.indexOf(new ABox(0, 0)) != -1)
				throw new MazeException("Deja une case d'arrivee!");
			else
				retour = new ABox(posX, posY);
		} else if (c == 'D') {
			if (grid.indexOf(new DBox(0, 0)) != -1)
				throw new MazeException("Deja une case de depart!");
			else
				retour = new DBox(posX, posY);
		} else
			throw new MazeException(" Caractere non recevable: " + c);

		return retour;
	}