implemented simple card flip