private void displayDungeon(AsciiPanel term, int left, int top) {
        for (int i = 0; i < screenW; i++) {
            for (int j = 0; j < screenH; j++) {
                int dx = i + left;
                int dy = j + top;
                term.write(dungeon.glyph(dx, dy), i, j, dungeon.color(dx, dy));
                
                Actor actor = dungeon.getActor(dx, dy);
                if(actor != null){
                    int ax = actor.getPosX();
                    int ay = actor.getPosY();
                    if(ax > left && ax < left+screenW && ay > top && ay < top+screenH){
                        term.write(actor.getGlyph(),ax - left,ay - top,actor.getColor());
                    }
                }
            }
        }
           
    }