Seemingly your program is correct. I guess your sprite have protruded offscreen and you've lost it. Could you try inserting "X=200:Y=120" between line 1 and 2 of your program.