zigzag using travel method to get different rows