So you can click the ball or press space to make it move again after it stops, and this is just a bouncing engine thing.
If you want to edit bounciness, there are instructions in the code.