 
   If 'moves' is given as an option, include only that many moves."
   {boardState, lastPlayed, prisoners} = stateFromSgfObject sgfObject, options
-  updateBoard board_state
+  updateBoard boardState
   if lastPlayed.x? and lastPlayed.y?
     setLastPlayed ($pointAt lastPlayed.x, lastPlayed.y)
   else

                    (boardDivsForPos i, j),
                    (stoneDivsForPos i, j)

createScoringDom = ->
  $scoreBlock = $('<div class="score_block"></div>')
  $scoreBlock.append ('<div>Black prisoners: ' +
    '<span class="prisoners black"></span></div>')
  $scoreBlock.append ('<div>White prisoners: ' +
    '<span class="prisoners white"></span></div>')
  $scoreBlock


# move navigation ====================================================

  sgfObject or= smartgame.parse(getInputSgf() or '(;SZ[19])')
  size = parseInt(sgfObject.gameTrees[0].nodes[0].SZ, 10) or 19

  $navBlock = createNavigationDom sgfObject
  $('#board').empty()
  React.render (React.createElement BoardAreaDom, {sgfObject: sgfObject}),
               $('#board')[0]
  $('#board').append($elem) for $elem in [$navBlock]
  return

BoardAreaDom = React.createClass
  render: ->
    {boardState, lastPlayed, prisoners} = stateFromSgfObject @props.sgfObject
    size = parseInt(@props.sgfObject.gameTrees[0].nodes[0].SZ, 10) or 19

    {div} = React.DOM
    div {},
        [(React.createElement BoardDom, boardState: boardState, size: size),
         (React.createElement ScoreDom, prisoners: prisoners)]

BoardDom = React.createClass
  render: ->
    {boardState, size} = @props

    {div} = React.DOM
    topVert = div {className: "board_line board_line_vertical"}
