Python Python Collections (2016, retired 2019) Dungeon Game Hit points

What's wrong with this code?

Stuck on the syntax and had a look around previous answers and no luck :(

movement.py
# EXAMPLES:
# move((1, 1, 10), (-1, 0)) => (0, 1, 10)
# move((0, 1, 10), (-1, 0)) => (0, 1, 5)
# move((0, 9, 5), (0, 1)) => (0, 9, 0)
    def move(player, direction):
    x, y, hp = player
    x1, y1 = direction

    if (x+x1 < 0) or (y+y1 < 0) or (x+x1 > 9) or (y+y1 > 9):
        return x, y, hp-5
    else:
        return x+x1, y+y1, hp