implemented moveTo and moveY