Revert "Remove redundant bestResult loop"

This reverts commit 50286c3ffa92ed0aad5307ace7166497c55773e4.