Why are you using a sentinel value to end a loop? That's literally what the `break` keyword was designed for.