Please Edit your post and wrap your code with
<YOUR CODE HERE> to get highlighting.

When you change the x and y values of the thing that is moving, you could test the new values to see if they...