Added check for final score conditions