Kappa function runs correclty but returns wrong number. Correct row but not correct column. Error in traverse row part?