The simulation shows how to mathematically model the sharpening up of the location of a particle: Superimpose many different wave forms over the original sine wave. The center will form a higher and higher peak, and the rest of the peaks will be increased in number but decreased in height because they will interfere with each other. So in the end there are many different waves in the superposition, each with a different wavelength and (by p = ħ/λ) a different momentum, but only one very high peak, one that grows higher and narrower and gives us something closer and closer to a determinate position.