Preliminary code for handling character death