why initialize to -1 and not just declare `var rowpos: number;`

also we've been eschewing multiple variable declarations in a single line