public void move()
{
World myWorld=this.getWorld();
int myWorldWidth=myWorld.getWidth();
int myWorldHeight=myWorld.getHeight();
if( this.getY() == myWorldHeight-1)
{
setLocation (getX(),1);
}
if (this.getY() ==0)
{
setLocation(getX() , myWorldHeight-1);
}
}
