Initial commit of card logic