bugfix: winning conditions.
Merge branch 'master' into gh-pages
update: js.