More game logic is introduced with this requirement.
We need to save the current player to determine which player is playing this turn. We also need a function to switch the players to recreate the logic of turns. Some lines of code become relevant in the putDisc function. Specifically, the board position assignment is made using the current player, and it is switched after every move, as the game rules say:
... private Color currentPlayer = Color.RED; private void switchPlayer() { if (Color.RED == currentPlayer) { currentPlayer = Color.GREEN; ...