moved candle blowing logic to a separate function