I am creating a chess engine with a reset function. I also have a feature where the screen doesn\'t allow the user to make any more moves after checkmate or stalemate.