Completed HETRI.  Not tested, but it looks good.