Added winning condition.