move_to_next_cell now uses get_cell_ranges