public void pickedUpCoin(int xH, int yH) {
        Rectangle heroCoin = new Rectangle(xH, yH, 50, 50);
        if (rc1.intersects(heroCoin)) {
            coinPicked1 = true;
            button1Used = true;
        }
        if (rc2.intersects(heroCoin)) {
            coinPicked2 = true;
            button2Used = true;
        }
        if (rc3.intersects(heroCoin)) {
            coinPicked3 = true;
            button3Used = true;
        }
        if (rc4.intersects(heroCoin)) {
            coinPicked4 = true;
            button4Used = true;
        }
    }