Cant the circumstances be put into some condition check? This way, you do not need to make separate codes but can loop everything?

Why dont you just provide me a few of the circumstances and i can see how to loop it?