Implemented isDead method in Character.java