Degubbing code; now compiles

The typo in the title was accidental, but I'll keep it. Also applied the
cheat fix to rulersused.