         top: (@here.height - @above.height + 71) / 2
         left: (@here.width - @above.width + 71) / 2
     })
-    frame.append(@container)
+    @frame.append(@container)
 
     # make invisible grid on which the pawn moves
     grid = $('<div id=grid></div>').css({

    }

    # set viewport
    #viewport.attr('content', "width=#{@here.width + 142}");

    # style frame
    frame.css({
        height: @here.height + 71
        width: @here.width + 71
        position: 'relative'

  @msg['updown'] = 'Press R to move a floor up, F to move a floor down.'
  @msg['win'] = 'Yay! You mastered the maze!'

  constructor: (@maze, @frame, @messagebox, @viewport) ->
    # dynamic attributes
    [@x, @y, @z] = @maze.start
    @busy = false
