Add bestStep function; correct cycle in equalCells