battle_calcs: change variable from global to local