Added special case for dangling edges in Corner class.