gofmt'ing
simplified move search loop