Classic graph paper game DotsAndBoxes coded with python