Question: what are phalanx used for?
Answer: In Greek texts, the phalanx may be deployed for battle, on the march, or even camped, thus describing the mass of infantry or cavalry that would deploy in line during battle. They marched forward as one entity.