     @cache =
       scores: {}
 
-    @robot.brain.on 'loaded', =>
+    @robot.brain.on "loaded", =>
       @robot.brain.data.scores ||= {}
 
       @cache.scores = @robot.brain.data.scores

        value = @currentQ.value.replace /[^0-9.-]+/g, ""
        @robot.logger.debug "#{name} answered correctly."

        value = parseInt value, 10
        newScore = @scoreKeeper.add(name, value)
        if newScore? then msg.send "#{name} has #{newScore} points."



  saveUser: (user) ->
    @robot.brain.data.scores[user] = @cache.scores[user]
    @robot.brain.emit("save", @robot.brain.data)

    @cache.scores[user]

  add: (user, value) ->
    user = @getUser(user)
    @cache.scores[user] += value
    @saveUser(user)

  scoreForUser: (user) -> 
    user = @getUser(user)
