Try each shape in turn, starting from different vertices (corners).