     assignTeams: =>
         logger.info 'controller: Assign teams'
         @currentGame (currentGame) =>
+            if !currentGame then return
             Team.find({}).done (team) =>
                 @getGameTeamForTeam currentGame, team, (gameTeam) =>
                     @getTeamsCount (teamsCount) =>

        userEnergyUpd = "LEAST(#{constants.energy.user.maxValue}, energy + #{constants.energy.user.value})"
        @currentGame (currentGame) =>
            User.find({}).done (user) =>
                if !user then return
                @getGameUser currentGame, user.dataValues, (gameUser) ->
                    GameUser.update energy: Sequelize.literal(userEnergyUpd),
                        where: id: gameUser.id

        @currentGame (currentGame) =>
            Point.find({}).done (point) =>
                console.log "Point #{point}"
                if !point or !currentGame then return
                @getGamePoint point.dataValues, currentGame, (gamePoint) =>
                    GamePoint.update energy: Sequelize.literal(pointEnergyUpd),
                        where: id: gamePoint.id
