reverse copy of steps array instead of reversing original array twice