Fixed mainstate reset
Merge branch 'master' of github.com:svenstaro/gamejam