Time for action – building the card-flipping function