public void updateRightClick(int cellPosX, int cellPosY) {

		if (!(cells[cellPosX][cellPosY].getIsRevealed())) {
			cells[cellPosX][cellPosY].setCellState();
			if (cells[cellPosX][cellPosY].getCellState() == 1) {
				for (GameEventHandler gameEvent : gameEventList) {
					gameEvent.buttonUpdate(cellPosX, cellPosY, ButtonImage.FLAG);
				}
				nbFlags++;
			} else if (cells[cellPosX][cellPosY].getCellState() == 2) {
				for (GameEventHandler gameEvent : gameEventList) {
					gameEvent.buttonUpdate(cellPosX, cellPosY, ButtonImage.QUESTION_MARK);
				}
				nbFlags--;
			} else {
				for (GameEventHandler gameEvent : gameEventList) {
					gameEvent.buttonUpdate(cellPosX, cellPosY, ButtonImage.EMPTY);
				}

			}

			for (GameEventHandler gameEvent : gameEventList) {
				gameEvent.updateFlag(nbMines - nbFlags);
			}
		}
	}