for (int i = 0; i < lists[playerKey].size(); i++) {
for (int i = lists[playerKey].size() - 1; i >= 0; --i) {
    private int getPlayerIndex(FreerailsPrincipal p) {        for (int i = 0; i < lists[playerKey].size(); i++) {            if (p.equals(((Player)(lists[playerKey].get(i))).getPrincipal())) {                return i;            }        }        throw new ArrayIndexOutOfBoundsException("No matching principal for " +            p.toString());    }