What program did you use? I've always wanted to make a merge game like this but I don't know where to start.
This was made using Phaser, a web based game framework. They got plenty of examples that you could check out and play around with.
If you want to try it out locally, you could give our template a try: https://github.com/Chocobois/choco-jam-template