#37 #54 resigning and finished game

Implemented passing/resigning/finishing a game in the backend thread
and emitting a signal if a game was finished (after a resign or 2 passes).

Also some GUI stuff.