UMass-Amherst would be more of a match plus it has a decent CS program. RPI, WPI, and any number of Southern/Southwestern OOS publics would be worth looking into.
This might be cynicism on my part, but it’s quite possible that the student in question might have moved to Maine to try to take advantage of geographic diversity. Sort of what some people out in Silicon Valley falsify residency requirements to go to a better rated high school.