public void mouseReleased(MouseEvent e) {
		mouseReleasedFps = papplet.frameCount;
		
		if (this.getClickedShapeFlag() == 1) {
			mouseReleasedX = e.getX();
			mouseReleasedY = e.getY();
			mouseDistance = PApplet.dist(mousePressedX, mousePressedY, mouseReleasedX, mouseReleasedY);
			mouseAngle = PApplet.degrees(PApplet.atan((mousePressedY - mouseReleasedY) / (mousePressedX - mouseReleasedX)));

			if ((mousePressedX - mouseReleasedX) >= 0 && (mousePressedY - mouseReleasedY) <= 0) {
				mouseAngle += 180;
			} else if ((mousePressedX - mouseReleasedX) >= 0 && (mousePressedY - mouseReleasedY) >= 0) {
				mouseAngle -= 180;
			}

			this.setSpeed(mouseDistance / (mouseReleasedFps - mousePressedFps));
			this.setAngle(mouseAngle);
			this.setClickedShapeFlag(0);
		}
	}