     let obstacleCategory = 0x1 << 3
   
   
+  
   override func didMoveToView(view: SKView) {
     
     


        //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)


  }
  

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

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