The Somerville YMCA is altering its expansion plans after neighbors next door refused to sell their home.