     case Idle
     case Saving
     case Saved
-    case CreditsShown
 }
 
 enum Corner {

        super.viewWillDisappear(animated)
    }
    
    override func motionBegan(motion: UIEventSubtype, withEvent event: UIEvent) {
        if motion == .MotionShake {
            self.hideSaveIndicator()
            self.hideInfoButton()
            self.hideCredits()
            self.gradientView.changeGradient(true)
            AudioServicesPlaySystemSound(SystemSoundID(kSystemSoundID_Vibrate))
        }

    }
    
    private func hideSaveIndicator () {
        if let btn = self.saveIndicator {
            btn.shrink { (finished : Bool) -> () in
                btn.removeFromSuperview()
                self.saveIndicator = nil
            }
        }
    }
    
    private func showCredits () {
        self.creditsShown = true
        
        self.infoButton?.hidden = true
        
