public void render() {
        clear();
        Graphics g = graphics();
        if (isPushed)// modified by Kerrigan
        {
            if (a)
                g.drawImage(up, 0, 0, null);
            else if (isHovered)
                g.drawImage(hover, 0, 0, null);
            else
                g.drawImage(down, 0, 0, null);
        } else {
            if (a)
                g.drawImage(down, 0, 0, null);
            else if (isHovered)
                g.drawImage(hover, 0, 0, null);
            else
                g.drawImage(up, 0, 0, null);
        }
        update();
    }