Ridgefield tops Shelton in thriller