New programmer here, I have a few lines of code that I\'ve finally managed to get to function but I\'m running into a bit of a design issue. The code itself, at least to me,