Create decoder class for CardsSocket