Additional functionality for backend

Closes #48, #49, #50 
Implements resign, pass and calculating score in the backend
and sets some predefined default rules.

2 passes or a resign end the game officially.