decider

      * if any direction is impossible turn right 90 degrees.
      ** if not enough shelves are present continue counting from bottom