Turner, Dodgers beat Giants 3-1, move closer to playoff spot