 
   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


    dame = div {className: "territory neutral"}
    blackScore = div {className: "territory black"}
    whiteScore = div {className: "territory white"}
    blackDead = div {className: "stone black dead"}
    whiteDead = div {className: "stone white dead"}
    lastPlayedMarker = div {className: "last-played"}
    hover = if @props.hoverColor \
            then div {className: "placement #{@props.hoverColor}"} \
