Shouldn't it be AND in place of OR
while (pTotal < 100 && cTotal < 100)