Rabbi Benayahu Shmueli, Head of the Yeshiva: From Where Does Victory Arrive?
The prayer of Moshe Rabbeinu is the root of the entire victory in the war. As the Torah indicates, where he sat upon the stone and performed repentance and offered... prayer, that is the victory of the war.

The Gemara in Tractate Berakhot states: One who sees the stone upon which Moshe Rabbeinu sat while Yehoshua fought against Amalek recites the blessing, "Blessed [is He] who performed miracles for our forefathers in this place." And this is ruled as practical halacha (law) in the Shulchan Aruch. Supposedly, the battle against Amalek was not even in the exact same place as the stone; Yehoshua went out to fight Amalek, while Moshe, Aharon, and Chur ascended to the top of the hill, and there they took a stone, placed it under him, and Moshe sat upon it. So, isn't it a different location?
Rather, the answer is: The prayer of Moshe Rabbeinu is the root of the entire victory in the war. As the Torah indicates, where he sat upon the stone and performed repentance and offered... prayer, that is the victory of the war. It was not merely Yehoshua fighting Amalek. Moshe Rabbeinu, was praying—wherever he prayed, that was the victory. Therefore, "He performed a miracle for our forefathers" applies here! Where Moshe prayed, not where Yehoshua physically fought. Yehoshua fought, yes, but the reason [for victory] was the prayer of Moshe Rabbeinu—that is the root of the victory. "And it came to pass, when Moshe held up his hand, that Israel prevailed."