     }
     
     func infoPressed (button : UIButton) {
-        if self.credits == nil{
+        if creditsShown {
+            self.hideCredits()
+        } else {
             self.showCredits()
-        } else {
-            self.hideCredits()
         }
     }
     

        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 var colourWheel : ColourWheel?
    private var instructions : UILabel?
    private var credits : UITextView?
    private var creditsShown : Bool = false
    private var infoButton : UIButton?
    private var saveIndicator : UIButton?
    
