Jb card flip function