Add countSteps function, argument for equalCells

Add state argument for equalCells to use this
function in countSteps with new state of desk.