The way you have it, "Grunt,1" is what's causing the issue. The line that starts the battle searches for the trainer named 'Grunt,1' which doesn't exist as the trainers PBS would still interpret an alternate battle as "Grunt."
What you need to do is set it up like below, where the number of the...