public void paint(Graphics g) {
		PathState state = new PathState();
		state.sx = 1;
		state.sy = 1;
		synchronized (path) {
			int nElements = path.size();
			for (int i = 0; i < nElements; i++) {
				PathElement element = (PathElement) path.get(i);
				element.paint(g, state);
			}
		}
		finalElement.paint(g, state);
		if (turtleVisible) drawTurtle(g);
	}