public int getClueNumber(int x, int y) {
		int foundMines = 0;
		
		for(int j = y - 1; j <= y + 1; j++) {
			for(int i = x - 1; i <= x + 1; i++) {
				if(j == y && i == x) {
					continue;
				} else if(j < 0 || i < 0 ||
						!(j < mineFieldGrid.length) || !(i < mineFieldGrid[j].length)) {
					continue;
				} else {
					if(mineFieldGrid[j][i].hasMine()) {
						++foundMines;
					}
				}
			}
		}
		return foundMines;
	}