If you read the Torah you would know that God told them where to camp.The whole story of Moses is full of improbabilities that do not fit the facts we know. For example Deuteronomy 29.5 says the tribe wandered in the wilderness for forty years. But the whole area is of a size that could have been crossed in a matter of weeks. Did they go round in circles ?
they were engaged in wars and they went around in circles