Added more card logic. Have worrying need for magic semicolon.