public void hurt(int oww) { health -= oww; if (health <= 0) //you died! { selected = false; health = 0; } }