Took me some time to manage to understand what to do, but the idea is good!
Good job on the visuals as well