updated lose condition