   taskLogObject.sessions = taskObject.sessions
   taskLogObject.save (err) -> callback err
 
-  winston.info "Game successfully simulated in #{taskObject.calculationTimeMS}, logging result"
 
 
 updateScores = (taskObject,callback) ->

  sessionIDs = _.pluck taskObject.sessions, 'sessionID'
  async.map sessionIDs, retrieveOldScoreMetrics, (err, oldScores) ->
    callback err, {"error": "There was an error retrieving the old scores"} if err?
    oldScores = _.indexBy oldScores, 'id'
    for sessions in taskObject.sessions
      oldScores[session.ID].gameRanking = session.metrics.rank

    newScores = bayes.updatePlayerSkills oldScores
    callback err, newScores


retrieveOldScoreMetrics = (sessionID, callback) ->
  LevelSession.findOne {"_id":sessionID}, (err, session) ->


constructTaskLogObject = (calculatorUserID, messageIdentifierString, callback) ->
  taskLogObject = new TaskLog
    "createdAt": new Date()
    "calculator":calculatorUserID
    "sentDate": Date.now()
    "messageIdentifierString":messageIdentifierString
