made currbattle global?