Small logical change for BoxCorners

Also tweaked it.
..updated TPAFromBoxEdge aswell!