implement setcard and setcarddeck