If your lineup was in that order, then my main problem is why did you put your strongest dragonite at the end. It is not going to be taken out, so you are wasting the full potential of it.
Try psycho cut on alakazam so you can dodge, and even zen headbutt with Espeon. You must dodge a few of those HS to survive given that it is harder to dodge (even though doing less damage than a resisted dynamic punch)
And I'm going to be a bit harsh on exeggutor, if it doesn't have legacy confusion it is not worth having on your team. The attack stat is already (in this context) quite low compared to the other options, and the whole point of extrasenaory is to charge up solar beam faster but solar beam is not the winning move in this matchup. I'd swap out the extrasenaory eggy with another Zam or espeon