added flipping of cards on tap