int getNumOpenSets(Space space) {
		int num = 0;
		if (isOpenForPiece(board[space.pos[0]], space.piece))
			num++;
		if (isOpenForPiece(getColumn(space.pos[1]), space.piece))
			num++;
		if (space.diagID % 2 == 0
				&& isOpenForPiece(getTopDownDiag(), space.piece))
			num++;
		if (space.diagID % 3 == 0
				&& isOpenForPiece(getBottomUpDiag(), space.piece))
			num++;
		return num;
	}