public Share getShare(String searchstring)
            throws WrongNameException {
        if (isShareListed(searchstring)){
            throw new WrongNameException("playername could not been found");
        }
        int i;
        for (i = 0; i < availableShare.size(); i++) {
            if(availableShare.get(i).name.equals(searchstring)){
                break;
            }
        }
        return availableShare.get(i);
    }