I developed a chess engine using Negamax with alpha/beta pruning, transposition table and some move sorting. It plays really well, but sometimes gets this weird behaviour of