Manually assembled automatic lvl 5 smurfing

Also robustness added to BattleTraining() and CheckIfFive() ported to VM
environment.