It's no more cheating than the fact that 1 = 1/2 + 1/4 + 1/8 + 1/16 + ...
Despite the fact that you can never actually add up an infinite number of terms one by one, you can however, compute what the limit of the sum will be in a finite amount of time. The same principle applies to this simulation, in which it is computing the limit of the process.