 
   setRegionScores = (region, color) ->
     for [x, y] in region
-      boardState[y][x] = color
+      if boardState[y][x] == 'empty'
+        boardState[y][x] = color
 
   for region in getEmptyRegions boardState
     boundary = go_rules.boundingColor region, boardState


BoardAreaDom = React.createClass
  getInitialState: ->
    proposedMove: null
    viewingMove: null


      prisoners.white += result.captures.white
  if scoring
    [x, y] = [null, null]
    if deadStones?
      for [px, py] in deadStones
        boardState[py][px] = switch boardState[py][px]
          when 'black' then 'blackdead'
          else boardState[py][px]
    {boardState, prisoners, scores} = scoreState {boardState, prisoners}
  else
    scores = null
