Here's why you lost, your heavy, and even light skirmishers, and your cretan archers should have joined the fight instead of withdrawing, they are very capable fighters!
Thoroughly agree on the Peltastai. They slaughter Hoplitai Haploi with little difficulty.
Still not going to make much of a dent in Makedonian/Seleukid Somatophylakes though .
Other skirmishers are generally fairly cheap to replenish losses & can hold/distract an enemy for crucial seconds in a pinch.