Changed the mouselistener to be a separate class in the controller package instead of in the mainview.