if (debug) { System.err.println("Setting " + element + " of type " + key + " at index " + index + " for " + p); }
    public void set(KEY key, int index, FreerailsSerializable element,        FreerailsPrincipal p) {        if (debug) {            System.err.println("Setting " + element + " of type " + key +                " at index " + index + " for " + p);        }        if (key.shared) {            lists[key.getKeyNumber()].set(index, element);            return;        }        ((ArrayList)lists[key.getKeyNumber()].get(getPlayerIndex(p))).set(index,            element);    }