   private var _vc: ViewController!
   
   var delegate: FigureViewDelegate? = nil
-  
+  var selected: Bool = false {
+    didSet {
+      self.selected ? self.backgroundColor = UIColor.lightGrayColor() : setColor(_figure)
+    }
+  }
   
   
   required init(coder aDecoder: NSCoder) {

  
  func endTouch() {
    
    var oldOverlaps = _overlapFVs
    for fv in oldOverlaps {
      fv.requestDeleteFV(self)

    self.backgroundColor = UIColor(red: red/255.0, green: green/255.0, blue: blue/255.0, alpha: 1.0)
  }
  
  func handleTap(sender: UITapGestureRecognizer) {
    if sender.state == .Ended && !_moved {
      selected = !selected
//      println("tapped+\(selected)")
    }
  }
  
  
  
  private var _beganPoint: CGPoint = CGPointZero
  private var _lastTouched: CGPoint = CGPointZero
  private var _moved: Bool = false
  
  override func touchesBegan(touches: Set<NSObject>, withEvent event: UIEvent) {
    super.touchesBegan(touches, withEvent: event)
    
    _moved = false
    
    if let del = delegate {
      var touch = touches.first as! UITouch
