Made changes to ripples by generating on mouse click and clearing the window on keyPress

Run ripples3 to see the program