Thanks!! That was a big help! It looks like my problem was a side distance y that I mistyped as side distance x. Copy paste strikes again.
Now I have a question, is it me, or is the display mirrored?
This is what I think it should look like.
0そうだね プレイ済み