correcting code for drawing deaths. adding some error handling.