double rate(Board board)
    {
        //count the holes and sum up the heights
        int mostHolesInAnyColumn = 0;
        for(int x=0; x<board.getWidth(); x++)
        {
            final int colHeight = board.getColumnHeight(x);
            int y = colHeight -2;
            int holes = 0;
            
            while(y>=0)
            {
                if(!board.getGrid(x, y))
                {
                    holes++;
                }
                y--;
            }
            
            if(mostHolesInAnyColumn<holes)mostHolesInAnyColumn = holes;
        }
        
        return mostHolesInAnyColumn;
    }