new version with loop for smooter movments
Removed loop