If you want the square to move slower, decrease the speed var. vice versa for faster
@mooseman24 for the idea and some help, and @griffpatch for the method of searching coordinates. Pen extension allowed this