moveXY() problem - Can't move after collecting the coins

Hi, please don’t post the same code in two locations, it won’t get you help any faster and it clutters the forum. Let’s stick to this topic:

Danny