def get_player_input(player_char, char_list):
    """Get a players move until it is a valid move on the board with no piece currently there."""
    while True:
        #Get user input
        player_move = int(input(player_char + ": Where would you like to place your piece (1-9): "))
        #Move is on board
        if player_move > 0 and player_move < 10:
            #Move is an empty spot
            if char_list[player_move - 1] == '_':
                return player_move
            else:
                print("That spot has already been chosen.  Try again.")
        else:
            print("That is not a spot on the board.  Try again.")