Basic code for card game.