I am playing as a green clan in history mode. I can barely beat the Macedonian phalanx.

I easily get beaten when I fight with my ordinary units or with mercenaries without inflicting much damage.

Is there an easy way to beat the phalanx? (I am reinforcing my army from across the sea because of that). I sent my infantry to a frontal attack and my cavalry to the flank. Unfortunately, I lost my infantry in the process.

Please tell me an easy way to beat the phalanx. I love my warriors.