so Joshua took about five thousand men and put them in ambush between Bethel and Ai, to the west of the town.