I am trying to implement IDA* on a snake game and I\'m having trouble. This is my code:
def ida_astar(start, end, count_first, count_second, heuristic): thre