for (EnvironmentLogic env : EnvironmentPersistence.getEnvironments()) {
for (ZoneLogic z : env.getZones()) {
if (z instanceof Room) {
final Room room = (Room) z;
//the gate is opened or closed we update the reachable rooms
room.visit();
}
}
for (ZoneLogic z : env.getZones()) {
if (z instanceof Room) {