The mouse listener now stores the status of the buttons in a boolean array