figured out when match returns None for ([[1, 1, v9, 0, 0, v10], 1], [[1, 1, 1, 0, 0, 0], 1]) and fixed a bug in match