Use nil for empty space, 0 for X, and 1 for O