def create_moves(x, y):
    """Create all valid moves from (x, y)"""
    if (x == 0) and (y == 0):
        return list([(0, 0)])

    moves = []
    for i in range(x):
        moves.append((i, y))
    for i in range(y):
        moves.append((x, i))

    return list(set(moves))