start 3-walls staircase algorithm