Changed to deepcopy the state.
Fixed performance issues with debug battle.