       settingsManager.userDefaults.synchronize()
     }
   }
-  
+
   class func getInfoDifficulty() -> Difficulty {
     return settingsManager.infoDifficulty
   }
-  
+
   class func setInfoDifficulty(_ infoDifficulty: Difficulty) {
     if infoDifficulty != settingsManager.infoDifficulty {
       settingsManager.infoDifficulty = infoDifficulty

      userDefaults.set(region.rawValue, forKey: SettingsManager.regionKey)
      userDefaults.synchronize()
    }
    
    if let storedDifficultyString = userDefaults.string(forKey: SettingsManager.difficultyKey) {
      difficulty = Difficulty(rawValue: storedDifficultyString)!
    }

      userDefaults.set("\(didShowGameCenterDialog)", forKey: SettingsManager.didShowGameCenterDialogKey)
      userDefaults.synchronize()
    }

    if let lastReviewPromptDateString = userDefaults.string(forKey: SettingsManager.lastReviewPromptDateKey) {
      lastReviewPromptDate = Date(timeIntervalSince1970: (lastReviewPromptDateString as NSString).doubleValue)
    }
    else {
      lastReviewPromptDate = SettingsManager.lastReviewPromptDateDefault
      userDefaults.set("\(lastReviewPromptDate)", forKey: SettingsManager.lastReviewPromptDateKey)
      userDefaults.synchronize()
    }
    if let promptActionCountString = userDefaults.string(forKey: SettingsManager.promptActionCountKey) {
      promptActionCount = Int((promptActionCountString as NSString).intValue)
    }
    else {
      promptActionCount = SettingsManager.promptActionCountDefault
      userDefaults.set("\(promptActionCount)", forKey: SettingsManager.promptActionCountKey)
      userDefaults.synchronize()
    }
  }

  class func getRegion() -> Region {
    return settingsManager.region
  }
  class func setRegion(_ region: Region) {
    if region != settingsManager.region {
      settingsManager.region = region
