public void expose(int x, int y) // exposes the surrounding 8 buttons
	{
		String surrbombs;
		exposed[x][y] = true;
		for (int q = x - 1; q <= x + 1; q++) {
			for (int w = y - 1; w <= y + 1; w++) {
				while (true) {
					if (q < 0 || w < 0 || q >= row || w >= col) // makes sure
																// that it wont
																// have an error
																// for buttons
																// next to the
																// wall
						break;
					if (flag[q][w] == true)
						break;

					checkwinbool[q][w] = true;
					surrbombs = Integer.toString(surroundingBombs(q, w));
					table[q][w].setLabel(surrbombs);
					break;

				}
			}
		}
	}