     override func viewDidLoad() {
         super.viewDidLoad()
         self.scrollView = UIScrollView(frame: self.view.bounds)
+        self.scrollView.autoresizingMask = .FlexibleWidth | .FlexibleHeight
         self.scrollView.panGestureRecognizer.minimumNumberOfTouches = 2
         self.view.insertSubview(self.scrollView, atIndex: 0)
         

                    }
                }
                rebuildAllConnectionLayers()
                self.currentDrag = nil
            }
        case .Possible:

            }
            index += 1
        }
        
        
    }
    
    func createConnectionLayer(startPoint: CGPoint, endPoint: CGPoint, color: UIColor?) -> CAShapeLayer {
