Entertaining battle, indeed. Did your Porygon-Z have Thunderbolt on it? I noticed Tri-Attack was used rather than Thunderbolt against that Gyarados. Of course, if yours did not carry Thunderbolt, then ignore this comment. Best of luck in your next battle.