The algorithm appears to produce the correct moves when the depth is set to 4 but when I increase it to 5 it gets unexpectedly worse. In this particular case it\'s recommending