def step_up
  start_position = $position
  step until ($position == start_position + 1)
end




def step
  if rand < 0.5
    $position -= 1
    p  if $DEBUG
    return false
  else
    $position += 1
    p  if $DEBUG
    return true
  end
end

$position = 0
step_up