Brought to runnable state; updated debugging prints

plug() now generates random squares (for testing) and marks squares as
updated.  Also generates squares starting from the bottom, which may or
may not matter.