Fix two bugs in dot and boxes
Two known bugs: a) Square completion check is wrong b) Drawing the same line twice should throw IllegalStateException.
Plan: write failing tests, tag 'testsfail', fix both, merge to main, and close this issue with the fix commit hash.