Added loosing condition