     
     func faceLocation(location: CGPoint) -> Bool
     {
+        let wasFacingLeft = xScale < 0.0
+        
         var multiplierForDirection : CGFloat
-        var wasFacingLeft = self.xScale < 0.0
-        
         if location.x <= position.x
         {
             // facing left

            multiplierForDirection = 1.0
        }
        
        self.xScale = CGFloat(CGFloat(fabsf(xScale)) * multiplierForDirection)
        
        return wasFacingLeft != ( self.xScale < 0.0 )
    }
    
    func setState(newState: State)

    {
        var currentState = state
        
        let changedFacingDirection = faceLocation(destination)
        if changedFacingDirection && ((currentState == .Running) || (currentState == .RunningAndShooting))
        {
            currentState = .Still
