cardFlip prototype