Heuristic function ivalidating iterative deepening

For a Mancala game, I’m writing an iterative deepening algorithm. This is the code: public int optimize(GameState currentBoard) { List aiMove = this.getMoves(currentBoard….