This code only works once but cannot be repeated in the same program. The error says "card" is a list after code is used once.