question: 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 ; }
target:  Returns a list of Coords of all hexes on the board. Returns ONLY hexes where board.getHex != null.