Implemented Lose Condition