score test
Just helping. This fixes most of your problems. I'll leave you to correct the upside-down digits!