title: Moving SKSpriteNode with finger only if it is of type Fruit (subclass of SKSpriteNode)
body: <p>I am creating a game where the user can move some fruits around in the scene. I want to user to be able to move only the fruits and not any other SKSpriteNode in the scene, so I wrote the code below to implement it. However the code doesn't work properly as I can't seem to be able to drag any of my sprites around, but rather they change position only when I stop touching the screen and they don't move by much anyway.</p>
  
  <pre><code>    override func touchesMoved(_ touches: Set&lt;UITouch&gt;, with event: UIEvent?) {
      let touch = touches.first
      if let location = touch?.location(in: self){
          let nodesTouched  = nodes(at: location)
          for node in (nodesTouched) {
              if node is Fruit{
              for t in touches {
                  let locationMoved = t.location(in: self)
                  node.position.x = locationMoved.x
                  node.position.y = locationMoved.y
                  }
  
              }
          }
      }
  
  
  }
  </code></pre>
  
  <p>Anyone knows what's wrong with it?</p>
  
  <p>Thanks in advance!</p>