goes through all the cards; not sure why it doesn't throw an error when it reaches the last one