The kindgom had decided that they could only help two of the three
groups that were fighting, the groups are ninjas, pirates, and samurais.

So the prince of the kingdom of candy was given the choice to decide...

Ninjas & Pirates Pirates & Samurais Samurais & Ninjas