detection of enemy threats
detection of final state of player