           alert(data.error)
         else
           self.result(data)
+      ).fail((xhr, status, error) ->
+        alert("Error #{xhr.status}: #{xhr.statusText}. Try refreshing a page")
       )
     
     next: ->

        self.transitionToRoute("index")
      else
        self.set("response", data)
    )
  
  result: (data) ->

        controller = self.get("controllers.game")
        controller.set("response", data)
        self.transitionToRoute("game")
      ).fail((xhr, status, error) ->
        alert("Error #{xhr.status}: #{xhr.statusText}. Try refreshing a page")
      )
      
, Config))
