Added UpdateTroops ability to mainscript