public void newGame(Difficulty difficulty) {
		// set difficulty and creates a new board

		this.height = difficulty.height();
		this.width = difficulty.width();
		this.nbMines = difficulty.nbMine();
		this.nbFlags = 0;

		cells = new Cell[width][height];
		for (int i = 0; i < width; i++) {
			for (int j = 0; j < height; j++) {
				cells[i][j] = new Cell();
			}
		}
		nbCellsLeft = width * height;
		createMine(nbMines);

		if (isCheating) {
			isCheating = false;
			cheat();
		}
	}