Which if why when attacking a phalanx from the front you should never group your units and then tell them to attack, it´s much more effective to have them all attack the same unit, that way that have at least a chance to break through.