update card and deck classes