change moving direction