the phalanx and the elephants formed in the middle