So Joshua fought Amalek as Moses had instructed, while Moses, Aaron, and Hur went up to the top of the hill.