I'm decently new to programming, and I made good 2 codes. And the problem is that I want to connect them, but first code is a 'choose your way' type of game, and there's three alternative endings. And the second code I made I want to add to all of the endings. So i was wondering if there is a way that I could write the second code once for all of the endings, instead of writing it for all of them individually. For the first code i used Cases and breaks to split up multiple ways. so the big question is how can I regroup my code after a case statements and a break?