Wagner sparks comeback as Ridgefield edges Warde