added function in to worker
Merge branch 'master' of github.com:mengzhiqc/puzzle