work save (finish troop battle code)