Core/Battleground: refactored BattlegroundScore
(original code by Machiavelli)