You can not take your mouse off the screen or let the square touch the mouse or edge STAY ON AS LONG AS POSSIBLE The distance variable is just the distance to the mouse pointer
I was bored filler project