all stages working and tested added sleep state for the cow