@Override
	public void mousePressed(MouseEvent e) {
		if (!isEnabled())
			click(true);
		else {
			if (e.getButton() == MouseEvent.BUTTON1)
				leftClick = true;
			if (e.getButton() == MouseEvent.BUTTON3) {
				if (!leftClick) {
					if (isFlagged) {
						mf.updateMineCount(1);
						setText("");
					} else {
						mf.updateMineCount(-1);
						setText("!");
					}
					isFlagged = !isFlagged;
				}
				rightClick = true;
			}
			if (leftClick && rightClick)
				bufferTime = true;
		}
	}