Improve program flow.

go vet .
util.go:80: unreachable code
This is incorrect. It will break from the inner `switch` statement, not the outer `for` loop as you intended, potentially resulting in an infinite loop.