   $('.goban .last-played').remove()
 
 # end of setPointColor helpers
+###
 
 game_common.contains_selector = contains_selector = ($context, selector) ->
   "A helper function returns true if the given element/context contains an

    result[row] ?= []
    result[row][col] = colorFromDom $this
  return result

game_common.updateBoard = updateBoard = (state) ->
  "set the images and classes of the DOM board to match the given state"
  for rowArray, row in state
    for color, col in rowArray
      setPointColor ($pointAt col, row), color
  return

isHandicapPoint = (size, row, column) ->
  switch size


game_common.$pointAt = $pointAt = (x, y) -> $(".row-#{y}.col-#{x}")
game_common.getInputSgf = getInputSgf = -> $('input#data').val()
# game_common.setResponseSgf = setResponseSgf = (sgf) ->
  # $('#response').val sgf

game_common.getBlackPrisoners = -> parseInt($('.prisoners.black').text(), 10)
game_common.getWhitePrisoners = -> parseInt($('.prisoners.white').text(), 10)

###
# setPointColor and helpers

game_common.setPointColor = setPointColor = ($td, color) ->
