public static enum PLAYER_IDS { FIRST_PLAYER, SECOND_PLAYER; }
protected Map<String, Zone> mapZones(Collection<Zone> zones) {
Hashtable<String, Zone> zoneMap = new Hashtable<String, Zone>();
for(Zone zone : zones) {
YouLoseZone youLoseZone;
if(zone == null || !(zone instanceof YouLoseZone)) {
throw new IllegalArgumentException();
} else {
youLoseZone = (YouLoseZone)zone;
}
zoneMap.put(youLoseZone.getId(), youLoseZone);
}
return zoneMap;
}