You need to only apply the movement code if it's to far away. If it's close enough then apply no movement code. ie update should be:
確定! 回上一頁