         switch contactMask {
         case UInt32(self.heroCategory) | UInt32(self.groundCategory):
             println("Hero hit Ground")
+            self.duckMode == true
             self.jumpNumber = 0
+            if self.hero.texture != bradDuckTexture {
+                self.hero.texture = bradTexture
+            }
+            
+            self.jumpMode = false
+            
         case UInt32(self.heroCategory) | UInt32(self.obstacleCategory):
             println("Hero hit obstacle")
         default:

                }
                
                
                if self.jumpMode == true {
                    self.currentTime = currentTime
                    self.deltaTime = self.currentTime - self.previousTime
                    self.previousTime = currentTime
                    self.jumpTime = self.jumpTime + self.deltaTime
                }
            }
        })
        

    
    func swipeUpAction(swipe: UISwipeGestureRecognizer) {
        if self.duckMode == false {
            if self.jumpMode == false {
                self.jumpTime = 0.0
            }
            self.jumpMode = true
            //         Jump Limit Logic ------ Uncomment to use.
            if self.jumpNumber < 2 && self.jumpTime <= 0.5 {
                self.hero.physicsBody!.velocity = CGVectorMake(0, 0)
                self.hero.physicsBody!.applyImpulse(CGVectorMake(0, 40))
                self.hero.texture = self.bradJumpTexture
                self.jumpNumber += 1
            }
        }
        else if self.duckMode == true {
            self.hero.yScale = 0.5
            self.hero.texture = bradTexture
            self.duckMode = false
        }
    }
    
    func swipeDownAction(swipe: UISwipeGestureRecognizer) {
        if duckMode == false && self.jumpMode == false{
            println("Swipe down")
            self.hero.yScale = 0.25
            self.hero.texture = bradDuckTexture
            self.duckMode = true
        }
        
    }
    
    
    
    
    func didBeginContact(contact: SKPhysicsContact) {
        println("Contact occured")
