Changed cards to hashes