public BoardCell(int i, int numRows, int numCols) {
		index = i;
		// Initialize our links.
		if((index - numCols) >= 0)
			top = index - numCols;
		if((index + numCols) < (numRows*numCols))
			bottom = index + numCols;
		if((index % numCols) > 0)
			left = index - 1;
		if(((index + 1) % numCols) > 0)
			right = index + 1;
	}