private boolean isFriendOrSelf(String name) {
        if (name == null) {
            return false;
        }
        for (int i = 0; i < friendsCount; i++) {
            if (name.equalsIgnoreCase(friendsNames[i])) {
                return true;
            }
        }
        return name.equalsIgnoreCase(Client.myPlayer.name);
    }