fixing cardflip example