Various fixes:

* Detect winning/end of game correctly.
* Don't remove click listeners, since this breaks the next game.