     
 
     override func update(currentTime: CFTimeInterval) {
-        
-        //Kevin-Tina/ Moving background
-        self.enumerateChildNodesWithName("background", usingBlock: { (node, stop) -> Void in
-            if let bg = node as? SKSpriteNode {
-                bg.position = CGPoint(x: bg.position.x-self.backgroundSpeed, y: bg.position.y)
-                if bg.position.x <= -bg.size.width {
-                    bg.position = CGPoint(x: bg.position.x+bg.size.width * 2, y: bg.position.y)
-                }
-            }
-            
-        })
-        
-        //Kevin-Tina/ Moving road
-        self.enumerateChildNodesWithName("road", usingBlock: { (node, stop) -> Void in
-            if let road = node as? SKSpriteNode {
-                road.position = CGPoint(x: road.position.x-self.roadSpeed, y: road.position.y)
-                if road.position.x <= -road.size.width {
-                    road.position = CGPoint(x: road.position.x+road.size.width * 2, y: road.position.y)
-                }
-            }
-            
-        })
+      
       
       //kori and brian
+      
       self.enumerateChildNodesWithName("trashCan", usingBlock: { (node, stop) -> Void in
         if let trash = node as? SKSpriteNode {
           trash.position = CGPoint(x: trash.position.x-self.roadSpeed, y: trash.position.y)

            trash.removeFromParent()
            
          }
          
        
        if self.jumpMode == true {
            self.currentTime = currentTime
            self.deltaTime = self.currentTime - self.previousTime
            self.previousTime = currentTime
            self.jumpTime = self.jumpTime + self.deltaTime
        }
    }
})
}
    
    // MARK: - HERO ACTIONS
    // [Tuan/Vincent]

    // Node Categories [Tuan/Vincent]
    let heroCategory = 0x1 << 1
    let groundCategory = 0x1 << 2
    let obstacleCategory = 0x1 << 3
  
  
  override func didMoveToView(view: SKView) {
    
    
    var bradJumpTexture = SKTexture(imageNamed: "")
    var bradDuckTexture = SKTexture(imageNamed: "")
    
       

        //spawns a trashcan every 2 seconds -kori/brian
        let spawnBench  = SKAction.runBlock({() in self.spawnBench()})
        let spawnObstacles = SKAction.runBlock({() in self.spawntrashCan()})
        let craneHook = SKAction.runBlock({() in self.spawnCrane()})
        let delay = SKAction.waitForDuration(NSTimeInterval(2.0))
        let spawnThenDelay = SKAction.sequence([spawnBench,delay,delay,spawnObstacles,delay, delay, craneHook])
        let spawnThenDelayForever = SKAction.repeatActionForever(spawnThenDelay)
        self.runAction(spawnThenDelayForever)

      

        // Swipe Recognizer Setup
        var swipeRecognizer = UISwipeGestureRecognizer(target: self, action: "swipeAction:")
