mostly working mouse listener
implemented mouse listener. works mostly.