Rewrote the step function using reduce
Removed scaleToView, wasn't working properly