That was a battle formation "the phalanx wall" which war used to brace against cavalry or infantry charges. The Romans used the similar "testudo" formation, which war deadly against cavalry. Spartans entered the battle with spears, and left with swords, they were extremely deadly in hand to hand...