fixed bug: boss defeated after loss condition met