код прошёл 6 проверок успешно , но когда я пытаюсь его запустить без проверки , чтобы увидеть готовый результат долго идет загрузка и в итоге выдает : An error occurred: SOMETHING_WENT_WRONG
package com.javarush.games.ticktacktoe;
import com.javarush.engine.cell.*;
public class TicTacToeGame extends Game {
private int[][] model = new int[3][3];
private int currentPlayer;
public void initialize() {
setScreenSize(3, 3);
startGame();
updateView();
}
public void startGame() {
currentPlayer = 1;
for(int x=0;x<3;x++)
for(int y=0;y<3;y++)
model[x][y] = 0;
}
public void updateView(){
for(int x=0;x<3;x++)
for(int y=0;y<3;y++)
updateCellView(x, y, model[x][y]);
}
public void updateCellView(int x, int y, int value){
if(value == 2){
setCellValue(x, y, "O");
}else if (value == 1) {
setCellValue(x, y, "X");
}else {
setCellValue(x, y, " ");
}
}
public void onMouseLeftClick(int x, int y){
model[x][y] = currentPlayer;
updateView();
currentPlayer = 3 - currentPlayer;
}
}