building IDA* search
need to make heuristic function