create closure for ExamplePuzzle.js

to make global variables local