Update night_state.cpp