Add the feature of changing traffic lights without writing to file