     this.now.badMove(e)
     console.log e
 
-# client telling the server that he wants to move a dice from unallocated to optional
-# index = index to the unallocated array
+
+###*
+ * client telling the server that he wants to move a dice from unallocated to optional
+ * @param  {Number} index index to the unallocated array
+###
 everyone.now.moveToOptional = (index) ->
   {game, group} = getThisGameGroup(this.now.gameNumber)
   groupReference = group.now




# put this in everyone's pocket. Server calls this when a player took too long.
everyone.now.moveTimeUp = (nextPlayerSocId) ->
  {game, group} = getThisGameGroup(this.now.gameNumber)
  group.now.receiveState(game.state)
  this.now.receiveMoveTimeUp()
  

# client telling the server that he wants to move a dice from unallocated to required
# index = index to the unallocated array
everyone.now.moveToRequired = (index) ->
  {game, group} = getThisGameGroup(this.now.gameNumber)
  groupReference = group.now

  group.now.receiveState(game.state)



###*
 * client telling the server that he has made a decision about the challenge
###
everyone.now.challengeDecision = (agree) ->
  {game, group} = getThisGameGroup(this.now.gameNumber)
  groupReference = group.now
