jago-server/src/main/java/jago/server/board/Mediator.java
public void pass() {
        myState.pass();
        if(!territory)
        {
            passCount++;
            if(passCount==2)
            {
                myState=new TerritoryState(myBoard);
                myBoard.setOwners();
                myGame.changeState(myBoard.getDeads());
            }
        }
    }
/**
     * If pass was done two times then go to territorystate
     */
If pass was done two times then go to territorystate
If pass was done two times then go to territorystate
public void pass() {
        myState.pass();
        if(!territory)
        {
            passCount++;
            if(passCount==2)
            {
                myState=new TerritoryState(myBoard);
                myBoard.setOwners();
                myGame.changeState(myBoard.getDeads());
            }
        }
    }
public void pass ( ) { myState . pass ( ) ; if ( ! territory ) { passCount ++ ; if ( passCount == 2 ) { myState = new TerritoryState ( myBoard ) ; myBoard . setOwners ( ) ; myGame . changeState ( myBoard . getDeads ( ) ) ; } } }
If pass was done two times then go to territorystate
If pass was done two times then go to territorystate