working before adding moveTo function
added 'run for' function