added a backside and flipping functionality to cards