I got this far but I think the edge points are needed and I don't think I'm accessing them properly.