Hi, this is my first time participating in something like this. I know it's rather unoptimised, but i had fun solving it. Looking forward to future puzzles.