working on go version of double-squares