added hasAnyFlags and quantity to the GameObject