private MinesNode[] getSurroundingNodes(int inX, int inY) {
		Vector v = new Vector();
		for (int i = (inX-1); i <= (inX+1); i++) {
			for (int j = (inY-1); j <= (inY+1); j++) {
				if (i >= 0 && j >= 0 && i < width && j < height && !(i == inX && j == inY))
					v.addElement(minesNodes[i][j]);
			}
		}
		
		MinesNode[] result = new MinesNode[v.size()];
		for (int i = 0; i < result.length; i++) {
			result[i] = (MinesNode)v.elementAt(i);
		}
		
		return result;
	}