Basic cleanup done. Now we need to make classes.
Realized that we should use the Dihedral group of 4 objects, not 8. About to fix.
It works (again).
Everyting works as it should. Next: PEP8 and docs.