         # generated by WTForms, server-side
         $('.confirm_button').prop('disabled', false)
         newSgfObject = sgfObjectWithMoveAdded @props.sgfObject,
-                                              xy.x, xy.y, nextColor
+                                              nextColor, xy.x, xy.y
         setResponseSgf smartgame.generate(newSgfObject)
         # back to React
         @setState proposedMove:

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

  # confirm button not under React control as it's provided by WTForms
  $('.confirm_button').prop('disabled', true)

  $('#board').empty()
  reactTop = React.render (React.createElement BoardAreaDom,

      return _lastPassInRun reversedNodes.slice(index + 1)
  return 'black'

sgfObjectWithMoveAdded = (sgfObject, color=null, col=null, row=null) ->
  if col != null and row != null
    coordStr = encodeSgfCoord col, row
  else
    coordStr = ''

  if color == null
    color = nextPlayerInSgfObject sgfObject
  sgfTag = switch color
    when 'black' then 'B'
    when 'white' then 'W'
