This is a project that I made to solve the Advanced Topics Challenge #1. Unfortunately I found the challenge days later after I could win it, but decided to solve it anyway because I liked the idea.
Link to the forum post with the challenge: https://scratch.mit.edu/discuss/topic/206784/