added dying state for buildings