detects corners to left, right, top and bottom