     propertyNames = @propertyNames
     $http.get("/assets/games/#{gameName}.json")
       .error((error) ->
-          # TODO Where does this line go ? showMessage(MessageType.Error, "Cannot load game files")
           deferred.reject error
         )
       .success((game) ->

      return @saveActions.none
    if currentGame.info.id and currentGame.info.ownerId is loggedUser.profile.id
      return @saveActions.saveNewVersion
    else if currentGame.info.ownerId
      return @saveActions.fork
    else
      return @saveActions.createFromScratch

  loadAll: ->
    allGames = []

    return keys


.factory 'games', ($http, $q, $location, loggedUser, currentGame, gameConverter, gameHistory, gameTime) ->

  saveInfo = ->
    $http.post('/games', currentGame.info)
      .then (savedGame) ->
        currentGame.info = savedGame.data
        currentGame.version.gameId = currentGame.info.id
        $http.get("/users?id=#{currentGame.info.ownerId}")
      .then (creator) ->
        currentGame.creator = creator.data.username

  updateInfo = ->
    $http.put('/games', currentGame.info)
