the following is working, although the death count seems to be not saving at the right time for this to work flawlessly yet