added functionality so if health is less then threshold the object turns red