Code cleanup

Your method for clearing backpack items can be replaced by the new command "clearAllItemsFromBackpack ".

Removed the specific adding of headgear and goggles at the bottom of your script, these are part of a units "assignedItems".

Formatted your code so it's easier to read and understand for everyone.