Joshua had already sent five thousand soldiers to the west side of the town to hide and wait to attack.