An implementation of the card game