public void paint(Graphics g) {
        bgsprite.paint(g);
        g.drawImage(logo, g.getClipWidth()/2, 0, Graphics.TOP | Graphics.HCENTER);
        for (int i = 0; i < buttons.length; i++) {
            buttons[i].paint(g);
        }
        /*for (int i = 0; i < buttonsName.length; i++) {
        if (pointer == i) {
        g.setColor(255, 0, 0);
        } else {
        g.setColor(0, 0, 255);
        }
        buttons[i].fill(g);
        buttons[i].drawString(g, berlin, buttonsName[i]);
        }*/
    }