Must be the renpy version, I wrote this one for renpy 7.x , to run it on 8.x few lines must be changed. This specific error happens when we divide something. contact me on discord: kiaazad and I'll help you fix them.
It should fit a 720 screen if you scale down the images. You can make the text smaller by searching `size` and changing the number too. If I remember correctly, the puzzle takes a size parameter for piece size, that you can fiddle with to get the best result.