Ridgefield rallies to beat Greenwich