Started to refactor the battle system.