public boolean checkKingIsSafe(CoinColor color) {
        if (color == CoinColor.WHITE) {
            return (!isHasThreat(white_king.getPosition(), CoinColor.BLACK));
        }
        return (!isHasThreat(black_king.getPosition(), CoinColor.WHITE));
    }