private boolean moveToNextBlank(Playboard board,Position p,boolean skipCompletedLetters){
  Word w=board.getCurrentWord();
  Box[] wordBoxes=board.getCurrentWordBoxes();
  if (w.across) {
    for (int x=p.across; x < w.start.across + w.length; x++) {
      if (!board.skipCurrentBox(wordBoxes[x - w.start.across],skipCompletedLetters)) {
        board.setHighlightLetter(new Position(x,p.down));
        return true;
      }
    }
  }
 else {
    for (int y=p.down; y < w.start.down + w.length; y++) {
      if (!board.skipCurrentBox(wordBoxes[y - w.start.down],skipCompletedLetters)) {
        board.setHighlightLetter(new Position(p.across,y));
        return true;
      }
    }
  }
  return false;
}

private boolean moveToNextBlank ( Playboard board , Position p , boolean skipCompletedLetters ) { Word w = board . getCurrentWord ( ) ; Box [ ] wordBoxes = board . getCurrentWordBoxes ( ) ; if ( w . across ) { for ( int x = p . across ; x < w . start . across + w . length ; x ++ ) { if ( ! board . skipCurrentBox ( wordBoxes [ x - w . start . across ] , skipCompletedLetters ) ) { board . setHighlightLetter ( new Position ( x , p . down ) ) ; return true ; } } } else { for ( int y = p . down ; y < w . start . down + w . length ; y ++ ) { if ( ! board . skipCurrentBox ( wordBoxes [ y - w . start . down ] , skipCompletedLetters ) ) { board . setHighlightLetter ( new Position ( p . across , y ) ) ; return true ; } } } return false ; }
moves to the next blank letter in this clue , starting at position p . returns true if such a letter was found ; returns false if the clue has already been filled .
