Fixed a bug that was causing COFFE to not choose the most optimial solution when the algorithm terminates because it has reached the max number of iterations.