public boolean isInAllowed(int x,int y){
  for (  Shape r : arrivingBarriers) {
    if (r.contains(x,y)) {
      return false;
    }
  }
  return true;
}

public boolean isInAllowed ( int x , int y ) { for ( Shape r : arrivingBarriers ) { if ( r . contains ( x , y ) ) { return false ; } } return true ; }
check if teleporting to a location is allowed .
