Law defeats Foran, 8-4 behind big fifth inning