public void checkwin(){ // checks if all the button without bombs have been
							// pressed
		boolean allexposed = true;
		for (int x = 0; x < row; x++) {
			for (int y = 0; y < col; y++) {
				if (flag[x][y] == true && bomb[x][y] == false)
					allexposed = false;
				if (checkwinbool[x][y] == false) {
					allexposed = false;
					break;
				}
			}
		}
		if (allexposed != false) {
			gameover();
			int x2 = (int) col / 2;
			int y2 = (int) row / 2;
			table[y2][x2 - 4].setLabel("Y");
			table[y2][x2 - 3].setLabel("O");
			table[y2][x2 - 2].setLabel("U");
			table[y2][x2 - 1].setLabel("");
			table[y2][x2].setLabel("W");
			table[y2][x2 + 1].setLabel("I");
			table[y2][x2 + 2].setLabel("N");
			table[y2][x2 + 3].setLabel("!");
			table[y2][x2 + 4].setLabel("!");
			for (int i = -4; i < 5; i++) {
				table[y2][x2 + i].setBackground(Color.black);
				table[y2][x2 + i].setForeground(Color.white);
			}
		}
	}