Started implementing the battle engine.