@Override
  public void update(Observable o, Object arg) {
    if(arg instanceof Piece) {
      PieceView v = new PieceView((Piece)arg, this);
      add(v);
      revalidate();
    } if(arg instanceof String && arg.equals("clearGame")) {
      pieceViews.clear();
      removeAll();
      revalidate();
    }
    
    repaint();
  }