public MoveList generateMoves(TwoPlayerMove lastMove) {
int j, row,col;
boolean player1 = (lastMove == null) || !(lastMove.isPlayer1());
MoveList moveList = new MoveList();
// scan through the board positions. For each each piece of the current player's,
// add all the moves that it can make.
for ( row = 1; row <= CheckersBoard.SIZE; row++ ) {
int odd = row % 2;