def get_valid_move(agent):
    x_old = agent.pos[0]
    y_old = agent.pos[1]
    x = int(random.randint((x_old - 3), (x_old + 3)))
    y = int(random.randint((y_old - 3), (y_old + 3)))
    if (x < 0):
        x = (x * (- 1))
    if (y < 0):
        y = (y * (- 1))
    if (x > 19):
        x = 19
    if (y > 19):
        y = 19
    return (x, y)
def get_valid_move(agent):
    x_old = agent.pos[0]
    y_old = agent.pos[1]
    x = int(random.randint((x_old - 3), (x_old + 3)))
    y = int(random.randint((y_old - 3), (y_old + 3)))
    if (x < 0):
        x = (x * (- 1))
    if (y < 0):
        y = (y * (- 1))
    if (x > 19):
        x = 19
    if (y > 19):
        y = 19
    return (x, y)