public void mouseClicked(MouseEvent evt) 
      	{

      		mx= evt.getX();
			my= evt.getY()-60;
			System.out.println(mx+" "+my);
			for(int i=0;i<8;i++)
			{
				for(int j=0;j<8;j++)
				{
					px=panel[i][j].getX();
					py=panel[i][j].getY();
					pwidth=panel[i][j].getWidth();
					pheight=panel[i][j].getHeight();
					if(mx>=px&&mx<=px+pwidth&&my>=py&&my<=py+pheight)
					{
						panel[i][j].setBackground(Color.YELLOW);
						x=i;y=j;
						panel[i][j].visited=true;
						value=panel[i][j].value;
					}
				}
			}
      	}   //    and MouseMotionListener