during one battle against the hoplites of sparta , they defeated a foe which greatly outnumbered them , but were eventually slaughtered by philip ii of macedon , whose victory removed the greek city-states authority over the land .