def user_input_coords(string):
    """Converts user coordinate input from string to list"""
    while True:  # makes sure the input has only two integer coordinates
        inp = input(string)
        if len([i for i in inp.split() if i.isdigit()]) == 2 and len(inp.split()) == 2:
            return list(map(int, inp.split()))