Fix bugs for DotsAndBoxesGrid - Tasks 4 - 12
This issue is for tracking the bug fixes required for tasks 4 - 12 in the assignment, bugs to fix:
- The algorithm for testing if a box is complete is wrong and does not actually work.
- The DotsAndBoxesGrid currently permits you to "draw" a line that has already been drawn and should throw an exception instead.
Tasks to complete:
- Create a branch to fix this issue
- Create unit tests that should fail initially and push them to the issue branch
- Fix the bugs and run the tests (they should now pass) and push to the issue branch.
- Merge the issue branch to main
- Close this issue with a ref to the commit hash that fixed the bugs.