wordmaster is now actually good code

Yeah this was the first thing I wrote that was more than like 20 lines
so it was a little ugly. Now it puts the type system to good use.