     public func reportAchievementIdentifier(identifier: String, percent: Double) {
         let achievement = GKAchievement(identifier: identifier)
         
-        if (!isAchievementCompleted(achievementIdentifier: identifier))
+        if (!isAchievementCompleted(identifier: identifier))
         {
             achievement.percentComplete = percent
             achievement.showsCompletionBanner = true

    }
    
    /**
     Reports progress on an achievement to GameKit.
     
     :param: identifier A string that matches the identifier string used to create an achievement in iTunes Connect.
     :param: percent A percentage value (0 - 100) stating how far the user has progressed on the achievement.

        }
    }
    
    
    /**
     Loads all existing achievements from GameKit and adds them to allPossibleAchievements dictionary.
     
     */
    public func loadAllPossibleAchievementsDict()
    {
        GKAchievement.loadAchievementsWithCompletionHandler({( achievements, error) in
            if (error != nil) {
                print("Error in loading achievements: \(error)")
            }
            else
                if !(achievements==nil)
                {
                    for anAchievement in achievements! {
                        self.allPossibleAchievementsDict[anAchievement.identifier!] = anAchievement                    }
            }
        })
        
    }
    
    /**
     Checks if an achievement in allPossibleAchievements is already 100% completed
     
     :param: identifier A string that matches the identifier string used to create an achievement in iTunes Connect.
     
     */
    public func isAchievementCompleted (identifier: String) -> Bool{
        
        let lookupAchievement:GKAchievement? = allPossibleAchievementsDict[identifier]
        
        if let achievement = lookupAchievement {
            if achievement.percentComplete != 100 {
                return false
