Got drawing of segments to work, now need to implement intersection counting