<prompt> Translate the following text to EnglishBaada ya vita vya mwisho vya karne ya kwanza, visiwa vingi vya Misri vilishirikiana na Filipo wa Pili wa Makedonia.  <response>: Before the end of the war in 401 b.c. , many islands had already transferred their allegiance to the victors, who were led by Philip II of Macedon. 