     func reportLeaderboardIdentifier(identifier: String, score: Int) {
         let scoreObject = GKScore(leaderboardIdentifier: identifier)
         scoreObject.value = Int64(score)
-            if (error != nil) {
         GKScore.reportScores([scoreObject]) { (error) -> Void in
+            if error != nil {
                 println("Error in reporting leaderboard scores: \(error)")
             }
         }

    }
    
    func match(theMatch: GKMatch!, didFailWithError error: NSError!) {
        if (match != theMatch) {
            return
        }
        

    func lookupPlayers() {
        let playerIDs = match.players.map { ($0 as GKPlayer).playerID }
        
        GKPlayer.loadPlayersForIdentifiers(playerIDs) { (players, error) -> Void in
            if error != nil {
                println("Error retrieving player info: \(error.localizedDescription)")
                self.matchStarted = false
                self.delegate?.matchEnded()
