@Override
    public void render() {
        GL11.glClear(GL11.GL_COLOR_BUFFER_BIT);
        
        float R = Utils.getDisplayRatio();
        
        background.draw(0, 0, R, 1);
        
        fnt25.setColor(1, 0, 0, 1);
        fnt25.draw(0.6f, 0.3f, "Best escape times:");
        for (int i = 0; i < scores.size(); i++)
            fnt20.draw(0.6f, 0.35f, scores.get(i), i);
        
        fnt40.setColor(1,0,0,1);
        if (Main.scoreTime > 0) {
            //fnt25.draw(0.5f, 0.6f, "You have succesfully escaped!");
            fnt40.draw(0.6f, 0.7f,
                    String.format("Escape time: %.2f s", Main.scoreTime),
                                        0, Font.Align.LEFT, Font.Align.TOP);
        }
        
        fnt25.setColor(1, 1, 1, 1);
        if (canSubmit) {
            boolean blink = (name.length()<10 && Timer.getTime() % 1000 < 500);
            fnt25.draw(0.6f, 0.8f, "Enter Name: " + name + (blink ? '_' : ""),
                                            0, Font.Align.LEFT, Font.Align.TOP);
        }
        

    }