Joshua obeyed Moses and went to fight the Amalekites. At the same time Moses, Aaron and Hur went to the top of the hill.