Welcome to the board Severus, since I've not seen you here before.

I think you're confusing your phalanxes.

Hoplites did indeed fight in a phalanx formation, but not the Macedonian style pike phalanx. There is plenty of discussion on the two styles on this forum and elsewhere on the net.