I did created a simulation similar to what you have described.
However, it is only available in Chinese version. [url=http://www.phy.ntnu.edu.tw/demolab/phpBB/viewtopic.php?topic=8324]???????[/url]:

I will create a new EJS version and post it here.