Card Game logic implemented.