Added Math.floor() to the addition of elapsed time, since it is maintained as an integer.  This could potentially result in a slight underestimate of the time taken to complete a level, but this seems acceptable for this sort of sim.