game no longer crashes upon player death