         
         firstBridgeBall.center = leftArmBall.center
         secondBridgeBall.center = armsConnectionBall.center
+        thirdBridgeBall.center = leftArmBall.center
+        
+        joinBezier.strokeColor = UIColor.clear.cgColor
     }
     
     func animate() {
         resetAnimation()
         resetAnimationButton.isEnabled = false
         startAnimationButton.isEnabled = false
+        
+        joinBezier.strokeColor = UIColor.red.cgColor
+        joinBezier.strokeStart = 0.0
+        joinBezier.strokeEnd = 0.0
         
         firstBridge.strokeColor = UIColor.green.cgColor
         secondBridge.strokeColor = UIColor.green.cgColor
         thirdBridge.strokeColor = UIColor.green.cgColor
         firstBridgeBall.backgroundColor = .red
         secondBridgeBall.backgroundColor = .red
+        thirdBridgeBall.backgroundColor = .red
         
         let animatorLinear = UIViewPropertyAnimator(duration: self.animationDuration, curve: .linear, animations: {
             self.leftArmBall.center = self.padded(self.controlPoint1)

    }
    
    @objc func update(displayLink: CADisplayLink) {
        print(displayLink.timestamp)
        /*
        let first = unpadded(firstBridgeBall.layer.presentation()!.position)
        let second = unpadded(secondBridgeBall.layer.presentation()!.position)
        
        let thirdBridgePath = UIBezierPath()
        thirdBridgePath.move(to: first)
        thirdBridgePath.addLine(to: second)
        thirdBridge.path = thirdBridgePath.cgPath */
    }
    
    func pan(gesture: UIPanGestureRecognizer) {

    let rightArm = CAShapeLayer()
    let armsConnection = CAShapeLayer()
    let handleSize : CGFloat = 8
    let animationDuration : TimeInterval = 3
    let padding : CGFloat = 100
    
    let leftArmBall = UIView()
