public void paint(Graphics g) throws IOException{
        scoreFont.paintString(g, "Score: "+score, 220, 0, Graphics.LEFT|Graphics.TOP);
        scoreFont.paintString(g, "Coin: "+money, 220, 50, Graphics.LEFT|Graphics.TOP);
        
        int barLength = (int) Math.ceil(bar * (0.8));
        g.setColor(255,0,0);
        g.fillRect(28, 230,barLength, 10);
        
        g.drawImage(comboBar,0, 240, Graphics.LEFT | Graphics.BOTTOM);
        comboFont.paintString(g, Integer.toString(combo), 15, 220, Graphics.LEFT|Graphics.TOP);
        
        //comboFont.paintString(g, "BarAttack: "+bar, 220, 40, Graphics.LEFT|Graphics.TOP);
        if (life >= 1){
            g.drawImage(animal1, 10, 0, 0);
        }
        if (life >= 2){
            g.drawImage(animal2, 30, 1, 0);
        }
        if (life >= 3) {
            g.drawImage(animal3, 50, 2, 0);
        }
        
    }