fully implement example game on server side, fix tests