if (agent instanceof Turtle) {
Turtle turtle = (Turtle) agent;
spotlightSize = turtle.size() * 2;
xcor = turtle.xcor();
ycor = turtle.ycor();
wrap = true;
} else if (agent instanceof Link) {
Link link = (Link) agent;
spotlightSize = link.size();
xcor = link.midpointX();