Added check on register_new_object in physicsManager