refactor restart
Merge branch 'master' of github.com:ByKeks/gamework into professions
fix bugs, add timeout