public boolean containsBlock(Block b){
  ArrayList<Block> bList=getInternalBlocksList();
  for (int i=0; i < bList.size(); i++) {
    if (b == bList.get(i)) {
      return true;
    }
  }
  return false;
}

public boolean containsBlock ( Block b ) { ArrayList < Block > bList = getInternalBlocksList ( ) ; for ( int i = 0 ; i < bList . size ( ) ; i ++ ) { if ( b == bList . get ( i ) ) { return true ; } } return false ; }
test if a block is in the transit
