added ground T1 units types
wrapped all onFrame() calls into try..catch to detect errors
agents prevent concurrent modifications by using thread-safe list type
fix nosuchelement exceptions by iterating on empty lists
fixed error due to unchecked empty list
fix to unchecked empty list condition (again)
added missing import