private void fillNumbers() {

		int dx[] = { 0, 1, 1, 1, 0, -1, -1, -1 };
		int dy[] = { -1, -1, 0, 1, 1, 1, 0, -1 };

		int width = board.length;
		int height = board[0].length;

		for (int x = 0; x < width; x++) {
			for (int y = 0; y < height; y++) {
				if (board[x][y] != MINE) {

					board[x][y] = 0;

					for (int d = 0; d < dx.length; d++) {

						int px = x + dx[d];
						int py = y + dy[d];

						if (px >= 0 && px < width && py >= 0 && py < height && board[px][py] == MINE) {
							board[x][y]++;
						}
					}
				}
			}
		}
	}