Restructured code. Added a Card and Analytics class. Added the double down functionality