Added check for level completion