I fixed the backtracking. It was a silly error involving the necessity of break statement. Cleaning & adding stopwatch.