*) fix the battle_code to make it run in the simulator....