I\'ve got a piece of code here that should be working but is not, and for the life of me I have no idea why or a better way to go about it.
What I am trying to achiev