if(isAtEdge())
{
//Turn towards the center of the world
turnTowards(worldCenterX, worldCenterY);
//Move to the center of the world. Must calculate the distance between the fly's current
//location and the center of the world. Thank Pythagoras for the distance calculation!
if (distanceToCenter==0)
if (Math.sqrt(Math.pow(getX()-worldCenterX,2) + (Math.pow(getY()-worldCenterY,2));
move(distanceToCenter*2);
}


