finished implementing the DiscardCardCommand class