the king of Jericho, one; the king of Ai, which is beside Bethel, one;
"Goiim in Gilgal ..." The meaning of these words is "nations in Gilgal," and most of the commentators cannot understand any meaning at all in the expression.  Blair said, "The expression is unintelligible."[36] There is probably a textual problem here.  The LXX has, "king of Goiim of Galilee," and later translations prefer this.  Woudstra probably has the best solution, proposing that, "This may be the same as Galilee of the Gentiles (Gentiles and nations have the same meaning)."[37]; Matthew 4:15 has this very expression, "Galilee of the Gentiles."  This indeed may refer to a place which had a king and which is mentioned here.  Besides that, the use of "nations" in the titles of some of those ancient kings was nothing unusual, for example, "Tidal, king of nations"  (Genesis 14:1).