public void paint(Graphics g) {
        g.drawImage(background, 0, 0, 0);
        g.drawImage(backImage, 40, 190, 0);
        berlin.paintString(g, Integer.toString(profile.getMoney()), 228, 37, Graphics.TOP | Graphics.LEFT);
        if (cursorState != MENU_UTAMA) {
            berlin.paintString(g, itemButtons[cursorState].getItem().getName(), 235, 100, Graphics.TOP | Graphics.LEFT);
            berlin.paintString(g, itemButtons[cursorState].getItem().getDescription(), 130, 190, Graphics.TOP | Graphics.LEFT);
        }

        for (int i = 0; i < MENU_UTAMA; i++) {
            if (!itemButtons[i].getItem().isBought()) {
                g.drawImage(coinImage, cursorPosition[i][0] + 10, cursorPosition[i][1], 0);
                berlin.paintString(g, Integer.toString(itemButtons[i].getItem().getPrice()), cursorPosition[i][0] + 20, cursorPosition[i][1] - 5, Graphics.TOP | Graphics.LEFT);
                g.drawImage(padlockImage, cursorPosition[i][0] + 30, cursorPosition[i][1] - 25, 0);
            }

        }
        g.drawImage(cursorImage, cursorPosition[cursorState][0], cursorPosition[cursorState][1], 0);
        
        if(windowState != BROWSE_STATE){
            String message = (windowState == CONFIRM_BUY_STATE)? "Beli barang ini?" : "Pakai barang ini?";
            g.drawImage(boxImage, 35,20, 0);
            berlin.paintString(g, message, 160, 40, Graphics.TOP | Graphics.HCENTER);
            g.drawImage(yesImage, 65,120,0 );
            g.drawImage(cancelImage, 175, 120,0);
            g.drawImage(cursorImage, (isOK)? 65 : 175 , 125, 0);
        }
    }