private void handlePointSelection(Point clickedPoint) {
		selectedCurve = null;
		selectedPoint = -1;
		List<Curve> curves = Main.getCurveManager().getCurves();
		int i = curves.size() - 1;
		boolean found = false;
		while (i >= 0 && !found) {
			selectedPoint = curves.get(i).checkMouseCollision(clickedPoint);
			if (selectedPoint != -1) {
				selectedCurve = curves.get(i);
				found = true;
			}
			i--;
		}
	}