an object is moving ticking back and forth