Implemented night phase.