The number that falls to 0 is the distance to the closest edge of the vortex that the player needs to reach to escape. It is correct that you win after it reaches 0.