Add surrender endpoint

A new button is added which allows the player to surrender, at which
point the secret word is displayed.

A caveat which may need to be addressed later: it is possible to
surrender an already won game.