if (abs(x - mychoicex) < speed && abs(y - mychoicey) < speed) { x = round(mychoicex); y = round(mychoicey); speed = 0; }