private void calculate(){
        Game game = Game.getInstance();

        U[game.getLastX()-1][game.getLastY()-1] = 1;

//        for (int i = 0; i < size; i++) {
//            for (int j = 0; j < size; j++) {
//                System.out.print(U[j][i] + " ");
//            }
//            System.out.println("");
//        }

        if(!win())
            if(!block())
                if(!center())
                    if(!corner(0))
                        random();
        U[x][y] = -1;
        x++; y++;
    }