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