fix updateScore bug, refactor and simplify
reload page in browser when the turn changes