public int queryPopulation()
    {
        int population = 0;
        for (int i=0; i<rows; i++)
            {
                for (int j=0; j<cols; j++)
                    {
                        if (board[i][j] == State.ALIVE)
                            population++;
                    }
            }
        return population;
    }