A study of pion pair production in the two-photon process