Now knows when game is finished

The game now stops when someone has won
Game reloads when a player has won

The game now reloads after the pop-up message/alert is gone so that the
game can start again without reloading the page manually.