Created the mouse listener

created a mouse listener, attempting to make it work