Added a death check in player_move_or_attack()