So Joshua fought the Amalekites as Moses had ordered, and Moses, Aaron and Hur went to the top of the hill.