private ArrayList<Coords> allBoardHexes(){
  IBoard board=game.getBoard();
  if (board == null)   return null;
  ArrayList<Coords> CoordList=new ArrayList<Coords>();
  for (int i=0; i < board.getWidth(); i++) {
    for (int j=0; j < board.getHeight(); j++) {
      IHex hex=board.getHex(i,j);
      if (hex != null) {
        CoordList.add(new Coords(i,j));
      }
    }
  }
  return CoordList;
}

private ArrayList < Coords > allBoardHexes ( ) { IBoard board = game . getBoard ( ) ; if ( board == null ) return null ; ArrayList < Coords > CoordList = new ArrayList < Coords > ( ) ; for ( int i = 0 ; i < board . getWidth ( ) ; i ++ ) { for ( int j = 0 ; j < board . getHeight ( ) ; j ++ ) { IHex hex = board . getHex ( i , j ) ; if ( hex != null ) { CoordList . add ( new Coords ( i , j ) ) ; } } } return CoordList ; }
returns a list of coords of all hexes on the board . returns only hexes where board . gethex ! = null .
