I wanted to try out matter.js, so I cobbled together this basic demo of Plinko on a Storyline slide. This uses a web object to display the Plinko board. You can click at the top to drop chips and watch them fall. when they reach the final bin, the count is updated on the slide. You can therefore detect which bin gets the chip and trigger a question in Storyline accordingly.
The web object contains all the code, and it is included in the attachment (not a coder, so forgive the hodgepodge approach). As long as it is hosted on the same site as your Storyline files, you can communicate with the player and its variables.
Try it here:
https://360.articulate.com/review/content/69189ad4-d0db-4cec-98ea-7ee3866991d0/review
The code needs some refinement of course, such as preventing multiple collision counts for a single chip.