And of course, the two lines that read
for ($l=0; $l<count($points); $l) {
should read
for ($l=0; $l<count($points); $l++) {
Does PHP catch infinite loops? Seems that code mistake should have
broken my function somehow.
-Camden