An implementation of the ideas for our card game.