implementing mouse movement, restricting random movement to the bounds of the window(not finished yet), code refactoring, removing unneeded variable checks