Added functionality so that the exits to rooms lock until all mobs are killed in the room.