title: Multiple game instance
body: <p>I have a method <code>createGame</code> on Server which create an instance of a game. What i want is to create another instance of the game for differents clients, but when i create another instance of the game, the first game created does not work anymore.</p>
  
  <p>Here is the code:</p>
  
  <pre><code>private void createGame(){
  
      gameThread.add(new GameThread(playerList, controllers.get(controllerNumber), controllers.get(controllerNumber)));
  
      gameThread.get(gameNumber).start();
  
      //just to shift the array of game
      gameNumber++;
  
      //shift the array of controller
      controllerNumber++;
  
      clientCounter = 0;
  
      playerList.clear();
  
      controllers.add(new ControllerServerSide());
  }
  </code></pre>
  
  <p>Why I can't play two games at the same time, if each one is on a different thread?</p>
  
  <p>EDIT:</p>
  
  <p><em>GameThread</em></p>
  
  <pre><code>public class GameThread extends Thread{
  
  private Settings settings;
  private Game game;
  
  private static int gamesActive = 0; 
  
  public GameThread(ArrayList&lt;Player&gt; playerList, Observer observer, ObservableInput controllerServer){
  
      ArrayList&lt;Player&gt; newPlayerList = new ArrayList&lt;&gt;();
      int size = playerList.size(); 
  
      for(int i = 0; i &lt; size; i++){
          newPlayerList.add(playerList.remove(0));
      }
  
      settings = new Settings("src/main/java/it/polimi/ingsw/ps05/gamelogic/mappa.xml", newPlayerList);
      game = new Game(settings, gamesActive++, observer, controllerServer);
  
      game.init();
  
  }
  
  public void run(){
      game.play();
  }
  </code></pre>
  
  <p>}</p>