adding a check for ambient lighting before the level is saved