Thank you!
And if you want more of this puzzle type, you're in luck: The puzzle-gameplay was based on one of the puzzle types in Tetris creator Alexey Pajitnov's Pandora's Box.
It's a Windows 95 multimedia game, but it can be found ready-to-play at the collection chamber retro blog:
https://collectionchamber.blogspot.com/p/pandoras-box.html