I tried to create a chess engine in C using the Negamax with alpha-beta pruning, but I couldn\'t get it working. It works as expected in the first few moves of the game, and