Right now, players can still make moves after the game ends. We need to prevent this.
Adding Validation:
We can use the NOT operator (!) with require to check that something is NOT true. require(!gameOver, "Game over");
This reads as: "Require that gameOver is NOT true."
If gameOver is true, the require fails and shows "Game over".
If gameOver is false, the require passes and the function continues.
Validation Order:
This check should be at the very top of makeMove, before all other validations. This way, if the game is over, we stop immediately.
Add this require statement as the first line in makeMove to prevent moves after the game ends.