add opportunitybeforetrigger to make sure when opportunity was created or updated,Territoty will be updated based on school.