if (!bestRoom || bestLength > path.path.length) {
                bestRoom = room;
                bestLength = path.path.length;
            }