Andrew Wiggins' 3-pointer with 31 seconds left secured a win for Miami over the Oklahoma City Thunder, 122-120.