Jshint-fix battlefactory.js