Improve logic for sweeping level

Don't go both directions on a level if you start
at one end.