private void createAdjacent() {
		for (int y = 0; y < height; y++) {
			for (int x = 0; x < width; x++) {
				if (mines[x][y] == -1) {
					for (int i = -1; i < 2; i++) {
						for (int j = -1; j < 2; j++) {
							try {
								if (mines[x + j][y + i] != -1)
									mines[x + j][y + i]++;
							} catch (ArrayIndexOutOfBoundsException e) {
							}
						}
					}
				}
			}
		}
	}