To play with the original Scratch simulation I coded and/or modify the code, look here: https://scratch.mit.edu/projects/7687...
To understand how the number of collisions maps onto a circle see this excellent description which I was first inspired by: • Why do colliding blocks compute pi?