What role did spies play in the lead-up to the battle?