Implemented card flipping.