     forbidden: []
     currentPlayer: 0 #this tells us the index of the player who's turn it is, and is automatically incremented after each resource move
   
-  constructor: (players, gameNumber) ->
+  constructor: (players, gameNumber, gameSize) ->
     @players = players
     @gameNumber = gameNumber
+    if gameSize? then @playerLimit = gameSize
     @nowJsGroupName = "game#{gameNumber}"
     @allocate()
 

      index

  moveToRequired: (index, clientId) ->
    if !@goalHasBeenSet()
      throw "Can't move yet, goal has not been set"
    if !@authenticateMove(clientId)

      @nextTurn()

  nowChallenge: (clientId) ->
    if @challengeMode
      throw "Can't challenge during challenge mode"
    if !validateChallenge(clientId)
      throw "Can't make challenge, you've just moved"
    @challengeMode = true
