private void createMine(int x, int y) {
		int tempX, tempY;
		do {
			tempX = (int) (Math.random() * width);
			tempY = (int) (Math.random() * height);
		} while ((tempX == x - 1 || tempX == x || tempX == x + 1)
				&& (tempY == y - 1 || tempY == y || tempY == y + 1)
				|| mines[tempX][tempY] == -1);

		mines[tempX][tempY] = -1;
	}