Make sure the inwards move after last perimeter loop doesn't exceed object boundary