title: Why doesn't this chessboard movement work correctly?
body: <p>I am trying to move a game piece from its initial position to its new position. Note: the move is assumed to be "legal".</p>
  
  <pre><code>public void move ( int fromRow, int fromCol, int toRow, int toCol) {
      GamePiece tmp; //Gamepiece is superclass
      tmp=board[fromRow][fromCol];
      board[toRow][toCol]=tmp;
      board[fromRow][fromCol]=new Gamepiece(); //default constructor
      System.out.print(toString()); //this method has the board array printed in correct format
  }
  </code></pre>
  
  <p>When I test this, it does not move the correct pieces and doesn't give a blank. Why?</p>