grid and mouse listener working