Moved all battle processing stuff to BattleAPI.