Generate word squares