Break get_row into get_black_row and get_white_row.