I just tried this on a friend's tablet.
If only one touch is active: both TouchIDs = 0.
If two touches are active (simultaneous touches): both TouchIDs = 1.
So there's a problem here. TouchID is not being assigned unless two simultaneous touches are happening, and when that happens, both TouchIDs are the same.