jago-server/src/main/java/jago/server/board/Square.java
protected int isNeutral() {
		check = true;
		if (myStone != null) {
			if (myStone.myColor == BLACK) {
				if (owner.equals(StoneColor.BLACK))
					return 2;
				else
					return 3;
			} else {
				if (owner.equals(StoneColor.WHITE))
					return 3;
				else
					return 2;
			}
		} else {
			int result = 1;
			for (Square neighbour : neighbourSquare) {
				if (!neighbour.check) {
					result = result * neighbour.isNeutral();
					if (result % 6 == 0)
						return result;
				}
			}
			return result;
		}
	}
/**
	 * Check if I'm neutral ,it returns number which is can be divide by 2 if
	 * there is black stone on path or dead white and 3*n when is white or dead
	 * black
	 */
Check if I'm neutral ,it returns number which is can be divide by 2 if
there is black stone on path or dead white and 3*n when is white or dead
black
Check if I ' m neutral it returns number which is can be divide by 2 if there is black stone on path or dead white and 3 * n when is white or dead black
protected int isNeutral() {
		check = true;
		if (myStone != null) {
			if (myStone.myColor == BLACK) {
				if (owner.equals(StoneColor.BLACK))
					return 2;
				else
					return 3;
			} else {
				if (owner.equals(StoneColor.WHITE))
					return 3;
				else
					return 2;
			}
		} else {
			int result = 1;
			for (Square neighbour : neighbourSquare) {
				if (!neighbour.check) {
					result = result * neighbour.isNeutral();
					if (result % 6 == 0)
						return result;
				}
			}
			return result;
		}
	}
protected int isNeutral ( ) { check = true ; if ( myStone != null ) { if ( myStone . myColor == BLACK ) { if ( owner . equals ( StoneColor . BLACK ) ) return 2 ; else return 3 ; } else { if ( owner . equals ( StoneColor . WHITE ) ) return 3 ; else return 2 ; } } else { int result = 1 ; for ( Square neighbour : neighbourSquare ) { if ( ! neighbour . check ) { result = result * neighbour . isNeutral ( ) ; if ( result % 6 == 0 ) return result ; } } return result ; } }
Check if I'm neutral ,it returns number which is can be divide by 2 if
 there is black stone on path or dead white and 3*n when is white or dead
 black
Check if I ' m neutral it returns number which is can be divide by 2 if there is black stone on path or dead white and 3 * n when is white or dead black