The Commander, God Almighty, was not on either side because Joshua needed to be on God's side, not the other way around. Joshua was humbled to be in the Lord's presence and fell down to the ground to worship him. After his encounter with the Lord, Joshua had the confidence to carry out his plan knowing that the Lord would be with him.