PPT Slide
// Move piece from oldSq to newSq and return true. If
// move is not possible, do nothing and return false.
private boolean validMove(CheckersSquare oldSq,
// Return "move oldSq to newSq is valid non-jump
// move for player colorToPlay". Assume oldSq contains
// a piece of colorToPlay and newSq is empty black square
private boolean isValidNonjump(CheckersSquare oldSq, CheckersSquare newSq)
// Return "move oldSq to newSq is valid jump for player
// colorToPlay". Assume oldSq contains piece and that
// newSq is an empty black square
private boolean isValidjump(CheckersSquare oldSq,
// clickflag=1. If pieces on oldSq and newSq have same
// color, switch to moving the piece on newSq. Otherwise
// try to move piece from oldSq to square newSq. If not
// possible, give error message; if possible, do it and
public void processClickTwo(CheckersSquare newSq)