working with mouselistener, currently fails to switch clicked boolean