Add checks for OF_DESTROYED and OF_VISUALONLY flags of an object that is trying to move, at the necessary times