public void fillWorld(int a, int b) {
		for (int i = 0; i < height; ++i) {
			for (int j = 0; j < width; ++j) {
				map[i][j] = new MineSweeperCell();
			}
		}

		Random r = new Random();

		while (bombsCount > 0) {
			int i = r.nextInt(height);
			int j = r.nextInt(width);
			if (i == a && j == b) continue;
			if (!map[i][j].isMined()) {
				bombsCount--;
				map[i][j].setMined(true);
				for (int x : new int[] { i - 1, i, i + 1 }) {
					for (int y : new int[] { j - 1, j, j + 1 }) {
						try {
							map[x][y].incValue();
						} catch (ArrayIndexOutOfBoundsException e) {

						}
					}
				}
			}
		}
	}