Using new class CardButton to simplify the PlayerCardDialog