private int countAdjacentMines(int row, int col) {
		int adjacentMines = 0;
		for (int i = row - 1; i <= row + 1; i++) {
			for (int j = col - 1; j <= col + 1; j++) {
				if (i >= 0 && i < rows && j >= 0 && j < cols
						&& field[i][j].hasMine())
					adjacentMines++;
			}
		}
		return adjacentMines;
	}