       not e.level.isType('course-ladder')
 
       # TODO: Add a general way for standalone levels to be accessed by students, teachers
-      e.level.get('slug') isnt 'peasants-and-munchkins' 
+      e.level.get('slug') isnt 'peasants-and-munchkins'
     ])
       return _.defer -> application.router.redirectHome()
 

    @updateStudentGoals()
    @onWindowResize()
    @realTimePlaybackWaitingForFrames = true
    
  updateStudentGoals: ->
    return unless @level.isType('game-dev')
    @studentGoals = @world.thangMap['Hero Placeholder'].stringGoals

    return if @headless
    scripts = @world.scripts  # Since these worlds don't have scripts, preserve them.
    @world = e.world

    # without this check, when removing goals, goals aren't updated properly. Make sure we update
    # the goals once the first frame is finished.
    if @world.age > 0 and @willUpdateStudentGoals
      @willUpdateStudentGoals = false
      @updateStudentGoals()

    @world.scripts = scripts
    thangTypes = @supermodel.getModels(ThangType)
    startFrame = @lastWorldFramesLoaded ? 0
