Iterator itr = tiles.iterator();
Iterator itr = iterator();
    private boolean isUsed(String hash) {        Iterator itr = tiles.iterator();        while (itr.hasNext()) {            Tile t = (Tile) itr.next();            if (hash.equals(images.get(""+t.getImageId()))) {                return true;            }        }        return false;    }