 
         //spawns a trashcan every 2 seconds -kori/brian
         let spawnBench  = SKAction.runBlock({() in self.spawnBench()})
-        let spawnObstacles = SKAction.runBlock({() in self.spawntrashCan()})
+        let spawnTrashcan = 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 spawnThenDelay = SKAction.sequence([spawnBench,delay,delay,spawnTrashcan,delay, delay, craneHook, spawnTrashcan])
         let spawnThenDelayForever = SKAction.repeatActionForever(spawnThenDelay)
         self.runAction(spawnThenDelayForever)
 

  }
  

  func spawntrashCan(){
    
    var randX: Float = Float(arc4random_uniform(500) + 100)
    //var anotherFloat: Float = Float(randX)
    
    
    //kori/brian
    let trashCan = SKSpriteNode(imageNamed: "trashCan.gif")

    trashCan.position = CGPointMake(CGRectGetMaxX(self.frame) + CGFloat(randX), 75)

    trashCan.physicsBody?.node?.name = "trashCan"
    trashCan.zPosition = 12
    trashCan.name = "trashCan"
    addChild(trashCan)
      }
  
  
