def valid_location(currBoard, location):
    """
    Takes in the current board and a potential location and checks if placing
    something in that square is a valid move or not. Ends by returning true
    if the move's valid and false otherwise.
    """
    
    if (location > 8 or location < 0): # Checks if the number is too small or big
        return False
    elif (currBoard[location] != "  "): # Checks if the location is taken
        return False
    else:
        return True