       settingsManager.userDefaults.synchronize()
     }
   }
-  
+
   class func getDifficulty() -> Difficulty {
     return settingsManager.difficulty
   }
-  
+
   class func setDifficulty(_ difficulty: Difficulty) {
     if difficulty != settingsManager.difficulty {
       settingsManager.difficulty = difficulty

      userDefaults.set("\(userRejectedGameCenter)", forKey: SettingsManager.userRejectedGameCenterKey)
      userDefaults.synchronize()
    }
    
    if let storedDidShowGameCenterDialogString = userDefaults.string(forKey: SettingsManager.didShowGameCenterDialogKey) {
      didShowGameCenterDialog = (storedDidShowGameCenterDialogString as NSString).boolValue
    }

      userDefaults.set(region.rawValue, forKey: SettingsManager.regionKey)
      userDefaults.synchronize()
    }

    if let storedDifficultyString = userDefaults.string(forKey: SettingsManager.difficultyKey) {
      difficulty = Difficulty(rawValue: storedDifficultyString)!
    }
