public void mouseMoved(MouseEvent e)	// used to show where the piece will be placed
	{

		for (Square[] a : squares)
		{
			for (Square s : a)
			{
				if (s.rect.contains(e.getPoint()))
				{
					x = s.x + 40;
					y = s.y + 40;

				}
			}
		}
	}