Create battle_core.py