@Override
    public boolean equals(Object o) {
        if (this == o) {
            return true;
        }

        if (!(o instanceof Player)) {
            return false;
        }

        Player player = (Player) o;

        if (!name.equals(player.name)) {
            return false;
        }
        return number.equals(player.number);
    }