Improve endgame check, mark client leaving

* Game now ends as soon as one player's health drops to 0
* When user presses 'Quit game' button he looses the game