Number.isNaN fanget ikke Infinity/-Infinity -- target: 1e400 ga stille score 0 i stedet for kast. Bytt til Number.isFinite (negert).