winning length must be non-zero. fixes #190