fightOrFlee function working