find first cell with lowest f score