I am making a chess game and I was trying to implement a reset function. I have two files: my main game file and my chess engine. Here they are:
Main file (ChessMate.