Clear card type when appropriate

Try the example and type "4". You'll see the Visa logo. Then delete the 4 and the Visa logo will still be there, but it should go away. I made a `clearCard` function and call it whenever the card type should be cleared due to the number being invalid.