     case Center
 }
 
-public class FlowerMenu: UIImageView {
+public class FlowerMenu: UIImageView, UIGestureRecognizerDelegate {
     
     //MARK: Public Variables
     public var centerView: UIView!

            arrayOfConstraints.appendContentsOf(horizontalConstraints)
            arrayOfConstraints.appendContentsOf(verticalConstraints)
            print("Constrain To Upper Left")
        case .UpperRight:
            let horizontalConstraints = NSLayoutConstraint.constraintsWithVisualFormat("H:[me]-28-|", options: [], metrics: nil, views: ["me": self])
            let verticalConstraints = NSLayoutConstraint.constraintsWithVisualFormat("V:|-28-[me]", options: [], metrics: nil, views: ["me":self])
            arrayOfConstraints.appendContentsOf(horizontalConstraints)
            arrayOfConstraints.appendContentsOf(verticalConstraints)
            print("Constrain To Upper Right")
        }
        
        self.theSuperView.addConstraints(arrayOfConstraints)
        self.setNeedsLayout()

    }
    
    //MARK: Public functions
    public func addPedal(theImage: UIImage, identifier: String){
        
        let newPedal = self.createAndConstrainPedal(theImage, name: identifier)
        
        self.addSubview(newPedal)
        self.constrainPedal(newPedal)
        newPedal.center = CGPointMake(self.bounds.origin.x + self.bounds.size.width / 2, self.bounds.origin.y + self.bounds.size.height / 2)
        self.pedals.append(newPedal)
        self.pedalIDs[identifier] = newPedal
        let tapGesture = UITapGestureRecognizer(target: self, action: #selector(FlowerMenu.didTapPopOutView(_:)))
        tapGesture.delegate = self
        newPedal.addGestureRecognizer(tapGesture)
        let panGesture = UIPanGestureRecognizer(target: self, action: #selector(FlowerMenu.pannedViews(_:)))
        newPedal.addGestureRecognizer(panGesture)
        newPedal.alpha = 0
    }
    
    public func getPedalFromIdentifier(identifier: String) -> UIView {
        return UIView()
    }
    
    public override func pointInside(point: CGPoint, withEvent event: UIEvent?) -> Bool {
        if CGRectContainsPoint(self.bounds, point) {
            return true
        }
        for view in self.pedals {
            if CGRectContainsPoint(view.frame, point) {
                return true
            }
        }
        return false
    }
    
    public func grow(){
