       hideSpinner()
       [i, j] = e.data.action
       $ "##{i}\\,#{j}"
-        .text (decode game.nextPlayer).toLowerCase()
+        .text playerText()
         .highlight()
       game = game.play [i, j]
       next()

      .text ''
    next()

  $spinner = $ '#spinner'
  spinnerTimeout = null
  spinnerThresholdMs = 100
  showSpinner = ->
    unless spinnerTimeout?
      spinnerTimeout =
        setTimeout (-> $spinner.css 'visibility', 'visible'), spinnerThresholdMs
  hideSpinner = ->
    clearTimeout spinnerTimeout if spinnerTimeout?
    $spinner.css 'visibility', 'hidden'
    spinnerTimeout = null
  hideSpinner()
  new Spinner(lines: 9, radius: 7, length: 7).spin $spinner.get(0)

  setup()


      $ ".#{playableClassName}"
        .addClass 'human-playable-tile'
        .on 'click', ->
          $tile = $ this
          $tile.text playerText()
          game = game.play parseId $tile.get(0).id
          next()

  setup = ->
