Rename BLANK to PUZZLE_BLANK.
Move puzzle to be a non-global variable.
Rename COLOR_TWIN_SQUARES to COLOR_SAME_NUMBER.
Use macro to increment/decrement mod 9--much clearer.
Add diagonal movement commands (borrowed from NetHack).