added a simple function to move to a position specified by x and y coordinates