refactored move variable to be moveInterval