#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).
Closes #54 

Also some GUI stuff.