Script for flipping cards in a deck.