added dying state and animations