public Board(int N) {
        size = N;
        board = new Cell[N][N];
        for (int x = 0; x < N; x++) {
            for (int y = 0; y < N; y++) {
                board[x][y] = new Cell(x, y, false);
            }
        }
    }