Fourth commit

fixed the problem with the card types (it wasn’t working for visas
because my substring was reading the whole number, not just the first
digit)