can now draw all the cards, but discard does not work as intended when building json