functional parser and card/deck initialize