void checkDead() { if (isDead == false && numHearts < 0) { isDead = true; player.Die(); timer.playerDied(); } }