updating flip to use logic from the pick cards fragment