High school basketball in Maine will remain at five classes next season, but with notable changes for schools in the largest enrollment class and for programs that have struggled in recent years.