calculate most weighted corner

calculates heaviest corner based on weights of adjacent corners