Hit from Raines gives Dogs win