Two ways to generate puzzle