@Override
    public boolean equals(Object o) {
        if (o == null) {
            return false;
        } else if (!(o instanceof PlayerStats)) {
            return false;
        }
        PlayerStats s = (PlayerStats) o;
        if (s.getName().equalsIgnoreCase(name) && s.getWins() == wins && s.getLosses() == losses && s.getKills() == kills && s.getDeaths() == deaths) {
            return true;
        } else {
            return false;
        }
    }