# well if anybody needs something similar, I found a solution it's kinda easy and dirty, but it gets job done :)
# fun fact - I was stuck on this and I asked GPT to help me, and it wrote most of this code ๐ I tweaked it for my needs