So it seems we are allowed to submit solutions that crash after the first set of inputs. Better for cost, but feels wrong to solve the puzzle without solving the puzzle. I've submitted a looping version as a showcase. It was an extra 300 cost to do so, but if it wouldn't make a difference in my ranking, you could show that version in place of this one.