def get_row_column(play, board):
    """
    prompt for user input until its correct
    catch any letters or incomplete values in user input
    :param play - string, user command:
    :param board - object, board:
    :return row, column - int, locations on board in 2-D:
    """
    # loop until there is valid user input
    while True:

        if type(play) == str:
            if play.lower() == 'q':
                quit()

        try:
            play_list = play.strip().split(',')
            row = int(play_list[0])
            column = int(play_list[1])

            # row index out of range
            if row < 1 or column < 1:
                print('Invalid position.')
                print('Try again.')
                print(board)
                play = input("Input a row then column separated by a comma (q to quit): ")
            else:
                return row, column

        except (TypeError, ValueError, IndexError):
            print('Incorrect input.')
            print('Try again.')
            print(board)
            play = input("Input a row then column separated by a comma (q to quit): ")