int numOpenSets(Space space) {
		int num = 0;
		if (isOpen(board[space.pos[0]], space.piece, 1))
			num++;
		if (isOpen(getColumn(space.pos[1]), space.piece, 1))
			num++;
		if (space.diagID % 2 == 0
				&& isOpen(topDownDiag(), space.piece, 1))
			num++;
		if (space.diagID % 3 == 0
				&& isOpen(bottomUpDiag(), space.piece, 1))
			num++;
		return num;
	}