class EscapeSuggester implements Suggester {

	@Override
	public ShortSet getMoves() {
		movesToEscape.clear();
		final StoneColor colorToPlay = board.getColorToPlay();
		final ShortSet chainsInAtari = atariObserver.getChainsInAtari(colorToPlay);
		for (int i = 0; i < chainsInAtari.size(); i++) {
			final short chain = chainsInAtari.get(i);
			final short p = board.getLiberties(chain).get(0);
			if (board.getNeighborsOfColor(p, VACANT) >= 2) {
				movesToEscape.add(p);
			} else if (board.getNeighborsOfColor(p, colorToPlay) > 0) {
				escapeByMerging(p);
			}
			escapeByCapturing(chain);
		}
		return movesToEscape;
	}

	public  EscapeSuggester(Board board, AtariObserver atariObserver);
	public  EscapeSuggester(Board board, AtariObserver atariObserver, int bias);

}