It's quite a long term plan it has to make:
- establish a composition
- train the selected composition to an appropriate level
- ration PPs through 5 fights
- ration items through 5 fights + globally (you can run out of money)
- maybe even switch the order of pokemon on the list? Poor Graveler
I'm not sure it can follow-through on this. Would be funny if it had to re-do the rock boulder puzzle. Guess I'll keep watching!