// Game is ran, goes a round as long as there is a free space and no winner yet. public static void playGame(TicTacToe game) { System.out.println("Let the games begin!"); while (game.isAnyFreeSpotLeft() && !game.isWinner(STATE.CIRCLE) && !game.isWinner(STATE.CROSS)) { moveplayer("cross", game); game.isThreeInRow(STATE.CROSS); if (!game.isWinner(STATE.CROSS)) { moveplayer("circle", game); game.isThreeInRow(STATE.CIRCLE); } else { System.out.println("The player with the CROSS is the winner!"); } } if (game.isWinner(STATE.CIRCLE)) { System.out.println("The player with the CIRCLE is the winner!"); } }