renamed get_lines as get_all_three_in_a_rows