allow changing of direction while repeating movement