Create autoBattle.js