@Override
	public void mouseClicked(MouseEvent e) {
		Point p = e.getPoint();
		boolean onUI = false;
		Set<Rectangle> UISpace = display.getUISpace();
		for (Rectangle uiSquare : UISpace) {
			if (uiSquare.contains(p)) {
				onUI = true;
				break;
			}
		}

		if (onUI) {
			Map<String, Rectangle> toggleMap = display.getToggleMap();
			for (String key : toggleMap.keySet()) {
				if (toggleMap.get(key).contains(p)) {
					display.buttonClicked(key).mouseClicked(e);
				}
			}

		} else {
			// map clicked here
		}
	}