def from_string(string, size, win_length=5): board = Board(size, win_length) board._board = [CellState.from_char(c) for c in string] return board