Move the card flipping logic into the Card object