@Override
  public void update(Observable o, Object arg) {
    if(this.model.getCurrentPlayer() == this.player && 
       this.model.getGameState() == GameState.DURING) {
      ArrayList<Piece> validMoves = this.model.getBoard()
          .getValidMoves(this.player.getColor());
      Random r = new Random();
      int randomMove = r.nextInt(validMoves.size()-1);
      
      this.model.getBoard().makeMove(validMoves.get(randomMove));
    }
  }