mouse detection works

need to create an equation so the output from the mouse listener can be
used to highlight the square