moved variables from abilities.js to battle.js