           @render 'notFound'
           pause()
 
-        if not this.data()?#or game.state is 'inprogress'
+        unless @data()?
           @render 'notFound'
           pause()
-
-        # gameId = @params._id
-        # game = null
-        # Deps.nonreactive ->
-        #   game = Games.findOne gameId
-        #   console.log game
-        # if not game? #or game.state is 'inprogress'
-        #   @render 'notFound'
-        #   pause()
 
       waitOn: ->
         Meteor.subscribe 'games'

        else
          Session.set('currentQuizId', quizId)

        if not Session.get('currentQuestion')
          Session.set('currentQuestion', 0)

    # game
    @route 'game',

        @render @params.action

    # session
    @route 'login'

    @route 'signup'

    @route 'logout',
      action: ->
        id = Meteor.userId()

