public void mousePressed(MouseEvent e) {
		buttonSelected = controller.buttonSelected;
		if (buttonSelected == null)
			return;
		
		pointClicked = e.getPoint();
		// MAKING A SELECTION
		if (buttonSelected == ButtonSelected.SELECT) {
			// a shape has already been selected and now the handles have been selected
			if (handleManager.checkIfSelectedHandles(e.getX(), e.getY())) {
				handlesSelected = true;
				anchor = handleManager.getAnchorPoint();
			}
			else {
				shapeSelected = shapeManager.select(e.getX(), e.getY());
				shapeManager.setSelectedShape(shapeSelected);
				handleManager.createOutline(shapeSelected);
			}
			GUIFunctions.refresh();
		}
		// DRAWING A TRIANGLE
		else if (buttonSelected == ButtonSelected.DRAW_TRIANGLE) {
			if (trianglePoints.size() < 3)
				trianglePoints.add(e.getPoint());
			if (trianglePoints.size() == 3) {
				createOrUpdateShape(e, Action.STARTED_DRAWING, pointClicked);
				trianglePoints.clear();
			}
		}
	}