public void render() {
        int indx = 0;
        int longest = 0;
        for(String line : lines) {
            if(line.length() > longest) {
                longest = line.length();
            }
        }
        for(String line : lines) {
            for(int i = 0; i < longest; i++) {
                Renderer.get().draw(bg, x+i*Renderer.get().getFont().getLetterWidth()*0.5f, y+indx*Renderer.get().getFont().getLetterHeight()*0.5f, Renderer.get().getFont().getLetterWidth()*0.5f, Renderer.get().getFont().getLetterHeight()*0.5f);
            }
            Renderer.get().drawText(line, x, y+indx*Renderer.get().getFont().getLetterHeight()*0.5f, 0.5f);
            indx++;
        }
    }