I think I made the code work(almost), although there is this weird issue with assigning i = i+1, which should be the simplest of all cases... <img width="691" alt="Screenshot 2021-07-25 133507" src="https://user-images.githubusercontent.com/87934321/126897917-46008412-3809-4875-8d38-a4c50dded82e.png">