It's always so tricky trying to decide when you need to refactor your code, and when doing so would be a waste of time. It's doubly hard in a game jam; trying to weigh up how much time any given rewrite will save in the long run is definitely a skill!