Added daynightcyclecounter and hooked up energysystem