public void disallowOut(int x,int y,int width,int height){
  Rectangle r=new Rectangle(x,y,width,height);
  leavingBarriers.add(r);
}

public void disallowOut ( int x , int y , int width , int height ) { Rectangle r = new Rectangle ( x , y , width , height ) ; leavingBarriers . add ( r ) ; }
block teleporting from a rectangular area .
