update SurroundedRegions.java