Maybe this has something to do with it?



while (kk < 2) {