 connectToScoringQueue = ->
   queues.initializeQueueClient ->
     queues.queueClient.registerQueue 'scoring', {}, (error, data) ->
-      if error? then throw new Error  "There was an error registering the scoring queue: #{error}"
+      if error? then throw new Error "There was an error registering the scoring queue: #{error}"
       scoringTaskQueue = data
       log.info 'Connected to scoring task queue!'
 

errors = require '../commons/errors'
aws = require 'aws-sdk'
db = require './../routes/db'
mongoose = require 'mongoose'
queues = require '../commons/queue'
LevelSession = require '../levels/sessions/LevelSession'
Level = require '../levels/Level'

  #if userIsAnonymous req then return errors.unauthorized(res, 'You need to be logged in to get games.')
  humansGameID = req.body.humansGameID
  ogresGameID = req.body.ogresGameID
  ladderGameIDs = ['greed', 'criss-cross', 'brawlwood', 'dungeon-arena', 'gold-rush']
  levelID = _.sample ladderGameIDs
  unless ogresGameID and humansGameID
    #fetch random games here
