The map now checks if the agent is on the map when adding a light.