Made BattleServer an external object

This makes BattleServer more compatible with the Node.js server.