Roughed out algorithm for moving steps