implemented flipping cards with jquery