Fixed! The score is now calculated as the sum of all merge results (like the original game), instead of the sum of all cells (like I was doing).
As a bonus, the score calculation is now done in pure sed.
If you notice any other issues, please let me know!